home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_libxml.idb / usr / freeware / src / libxml / patches.z / patches
Encoding:
Text File  |  1999-07-16  |  90.3 KB  |  2,666 lines

  1. --- ./parser.c    Sun Jun 27 00:01:25 1999
  2. +++ ../libxml-1.3.0/./parser.c    Sat Jul  3 22:36:32 1999
  3. @@ -628,8 +628,8 @@
  4.      CHAR *ret = malloc((len + 1) * sizeof(CHAR));
  5.  
  6.      if (ret == NULL) {
  7. -        fprintf(stderr, "malloc of %d byte failed\n",
  8. -            (len + 1) * sizeof(CHAR));
  9. +        fprintf(stderr, "malloc of %ld byte failed\n",
  10. +            (len + 1) * (long)sizeof(CHAR));
  11.          return(NULL);
  12.      }
  13.      memcpy(ret, cur, len * sizeof(CHAR));
  14. @@ -669,8 +669,8 @@
  15.      CHAR *ret = malloc((len + 1) * sizeof(CHAR));
  16.  
  17.      if (ret == NULL) {
  18. -        fprintf(stderr, "malloc of %d byte failed\n",
  19. -            (len + 1) * sizeof(CHAR));
  20. +        fprintf(stderr, "malloc of %ld byte failed\n",
  21. +            (len + 1) * (long)sizeof(CHAR));
  22.          return(NULL);
  23.      }
  24.      for (i = 0;i < len;i++)
  25. @@ -807,8 +807,8 @@
  26.      size = xmlStrlen(cur);
  27.      ret = realloc(cur, (size + len + 1) * sizeof(CHAR));
  28.      if (ret == NULL) {
  29. -        fprintf(stderr, "xmlStrncat: realloc of %d byte failed\n",
  30. -            (size + len + 1) * sizeof(CHAR));
  31. +        fprintf(stderr, "xmlStrncat: realloc of %ld byte failed\n",
  32. +            (size + len + 1) * (long)sizeof(CHAR));
  33.          return(cur);
  34.      }
  35.      memcpy(&ret[size], add, len * sizeof(CHAR));
  36. @@ -3548,8 +3548,8 @@
  37.              maxatts = 10;
  38.              atts = (const CHAR **) malloc(maxatts * sizeof(CHAR *));
  39.          if (atts == NULL) {
  40. -            fprintf(stderr, "malloc of %d byte failed\n",
  41. -                maxatts * sizeof(CHAR *));
  42. +            fprintf(stderr, "malloc of %ld byte failed\n",
  43. +                maxatts * (long)sizeof(CHAR *));
  44.              return(NULL);
  45.          }
  46.          } else if (nbatts + 2 < maxatts) {
  47. @@ -3556,8 +3556,8 @@
  48.              maxatts *= 2;
  49.              atts = (const CHAR **) realloc(atts, maxatts * sizeof(CHAR *));
  50.          if (atts == NULL) {
  51. -            fprintf(stderr, "realloc of %d byte failed\n",
  52. -                maxatts * sizeof(CHAR *));
  53. +            fprintf(stderr, "realloc of %ld byte failed\n",
  54. +                maxatts * (long)sizeof(CHAR *));
  55.              return(NULL);
  56.          }
  57.          }
  58. --- ./configure.in    Tue Jun 22 17:25:04 1999
  59. +++ ../libxml-1.3.0/./configure.in    Mon Jul  5 11:38:25 1999
  60. @@ -55,7 +55,7 @@
  61.  AC_SUBST(HTML_DIR)
  62.  
  63.  XML_LIBDIR='-L${libdir}'
  64. -XML_INCLUDEDIR='-I${includedir}'
  65. +XML_INCLUDEDIR='-I${includedir}/gnome-xml'
  66.  XML_LIBS="-lxml $Z_LIBS"
  67.  
  68.  AC_SUBST(XML_LIBDIR)
  69. --- ./entities.c    Tue Jun 22 17:16:18 1999
  70. +++ ../libxml-1.3.0/./entities.c    Sat Jul  3 22:36:43 1999
  71. @@ -570,8 +570,8 @@
  72.      ret = (xmlEntitiesTablePtr) 
  73.           malloc(sizeof(xmlEntitiesTable));
  74.      if (ret == NULL) {
  75. -        fprintf(stderr, "xmlCreateEntitiesTable : malloc(%d) failed\n",
  76. -            sizeof(xmlEntitiesTable));
  77. +        fprintf(stderr, "xmlCreateEntitiesTable : malloc(%ld) failed\n",
  78. +            (long)sizeof(xmlEntitiesTable));
  79.          return(NULL);
  80.      }
  81.      ret->max_entities = XML_MIN_ENTITIES_TABLE;
  82. @@ -579,8 +579,8 @@
  83.      ret->table = (xmlEntityPtr ) 
  84.           malloc(ret->max_entities * sizeof(xmlEntity));
  85.      if (ret == NULL) {
  86. -        fprintf(stderr, "xmlCreateEntitiesTable : malloc(%d) failed\n",
  87. -            ret->max_entities * sizeof(xmlEntity));
  88. +        fprintf(stderr, "xmlCreateEntitiesTable : malloc(%ld) failed\n",
  89. +            ret->max_entities * (long)sizeof(xmlEntity));
  90.      free(ret);
  91.          return(NULL);
  92.      }
  93. --- ./valid.c    Mon Jun 21 08:00:16 1999
  94. +++ ../libxml-1.3.0/./valid.c    Sat Jul  3 22:36:14 1999
  95. @@ -189,8 +189,8 @@
  96.      ret = (xmlElementTablePtr) 
  97.           malloc(sizeof(xmlElementTable));
  98.      if (ret == NULL) {
  99. -        fprintf(stderr, "xmlCreateElementTable : malloc(%d) failed\n",
  100. -            sizeof(xmlElementTable));
  101. +        fprintf(stderr, "xmlCreateElementTable : malloc(%ld) failed\n",
  102. +            (long)sizeof(xmlElementTable));
  103.          return(NULL);
  104.      }
  105.      ret->max_elements = XML_MIN_ELEMENT_TABLE;
  106. @@ -198,8 +198,8 @@
  107.      ret->table = (xmlElementPtr ) 
  108.           malloc(ret->max_elements * sizeof(xmlElement));
  109.      if (ret == NULL) {
  110. -        fprintf(stderr, "xmlCreateElementTable : malloc(%d) failed\n",
  111. -            ret->max_elements * sizeof(xmlElement));
  112. +        fprintf(stderr, "xmlCreateElementTable : malloc(%ld) failed\n",
  113. +            ret->max_elements * (long)sizeof(xmlElement));
  114.      free(ret);
  115.          return(NULL);
  116.      }
  117. @@ -461,8 +461,8 @@
  118.  
  119.      ret = (xmlEnumerationPtr) malloc(sizeof(xmlEnumeration));
  120.      if (ret == NULL) {
  121. -        fprintf(stderr, "xmlCreateEnumeration : malloc(%d) failed\n",
  122. -            sizeof(xmlEnumeration));
  123. +        fprintf(stderr, "xmlCreateEnumeration : malloc(%ld) failed\n",
  124. +            (long)sizeof(xmlEnumeration));
  125.          return(NULL);
  126.      }
  127.  
  128. @@ -528,8 +528,8 @@
  129.      ret = (xmlAttributeTablePtr) 
  130.           malloc(sizeof(xmlAttributeTable));
  131.      if (ret == NULL) {
  132. -        fprintf(stderr, "xmlCreateAttributeTable : malloc(%d) failed\n",
  133. -            sizeof(xmlAttributeTable));
  134. +        fprintf(stderr, "xmlCreateAttributeTable : malloc(%ld) failed\n",
  135. +            (long)sizeof(xmlAttributeTable));
  136.          return(NULL);
  137.      }
  138.      ret->max_attributes = XML_MIN_ATTRIBUTE_TABLE;
  139. @@ -537,8 +537,8 @@
  140.      ret->table = (xmlAttributePtr ) 
  141.           malloc(ret->max_attributes * sizeof(xmlAttribute));
  142.      if (ret == NULL) {
  143. -        fprintf(stderr, "xmlCreateAttributeTable : malloc(%d) failed\n",
  144. -            ret->max_attributes * sizeof(xmlAttribute));
  145. +        fprintf(stderr, "xmlCreateAttributeTable : malloc(%ld) failed\n",
  146. +            ret->max_attributes * (long)sizeof(xmlAttribute));
  147.      free(ret);
  148.          return(NULL);
  149.      }
  150. @@ -858,8 +858,8 @@
  151.      ret = (xmlNotationTablePtr) 
  152.           malloc(sizeof(xmlNotationTable));
  153.      if (ret == NULL) {
  154. -        fprintf(stderr, "xmlCreateNotationTable : malloc(%d) failed\n",
  155. -            sizeof(xmlNotationTable));
  156. +        fprintf(stderr, "xmlCreateNotationTable : malloc(%ld) failed\n",
  157. +            (long)sizeof(xmlNotationTable));
  158.          return(NULL);
  159.      }
  160.      ret->max_notations = XML_MIN_NOTATION_TABLE;
  161. @@ -867,8 +867,8 @@
  162.      ret->table = (xmlNotationPtr ) 
  163.           malloc(ret->max_notations * sizeof(xmlNotation));
  164.      if (ret == NULL) {
  165. -        fprintf(stderr, "xmlCreateNotationTable : malloc(%d) failed\n",
  166. -            ret->max_notations * sizeof(xmlNotation));
  167. +        fprintf(stderr, "xmlCreateNotationTable : malloc(%ld) failed\n",
  168. +            ret->max_notations * (long)sizeof(xmlNotation));
  169.      free(ret);
  170.          return(NULL);
  171.      }
  172. --- ./ltmain.sh    Sat Jun 26 23:56:30 1999
  173. +++ ../libxml-1.3.0/./ltmain.sh    Sat Jul  3 10:58:49 1999
  174. @@ -2,7 +2,7 @@
  175.  # NOTE: Changing this file will not affect anything until you rerun ltconfig.
  176.  #
  177.  # Copyright (C) 1996-1999 Free Software Foundation, Inc.
  178. -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  179. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  180.  #
  181.  # This program is free software; you can redistribute it and/or modify
  182.  # it under the terms of the GNU General Public License as published by
  183. @@ -28,12 +28,8 @@
  184.    # Discard the --no-reexec flag, and continue.
  185.    shift
  186.  elif test "X$1" = X--fallback-echo; then
  187. -  # used as fallback echo
  188. -  shift
  189. -  cat <<EOF
  190. -$*
  191. -EOF
  192. -  exit 0
  193. +  # Avoid inline document here, it may be left over
  194. +  :
  195.  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  196.    # Yippee, $echo works!
  197.    :
  198. @@ -42,6 +38,15 @@
  199.    exec $SHELL "$0" --no-reexec ${1+"$@"}
  200.  fi
  201.  
  202. +if test "X$1" = X--fallback-echo; then
  203. +  # used as fallback echo
  204. +  shift
  205. +  cat <<EOF
  206. +$*
  207. +EOF
  208. +  exit 0
  209. +fi
  210. +
  211.  # The name of this program.
  212.  progname=`$echo "$0" | sed 's%^.*/%%'`
  213.  modename="$progname"
  214. @@ -49,8 +54,8 @@
  215.  # Constants.
  216.  PROGRAM=ltmain.sh
  217.  PACKAGE=libtool
  218. -VERSION=1.2f
  219. -TIMESTAMP=" (1.385 1999/03/15 17:24:54)"
  220. +VERSION=1.3.2
  221. +TIMESTAMP=" (1.385.2.150 1999/05/26 00:28:32)"
  222.  
  223.  default_mode=
  224.  help="Try \`$progname --help' for more information."
  225. @@ -100,6 +105,7 @@
  226.  show_help=
  227.  execute_dlfiles=
  228.  lo2o="s/\\.lo\$/.${objext}/"
  229. +o2lo="s/\\.${objext}\$/.lo/"
  230.  
  231.  # Parse our command line options once, thoroughly.
  232.  while test $# -gt 0
  233. @@ -460,6 +466,7 @@
  234.      command="$command -o $output_obj"
  235.        fi
  236.  
  237. +      $run $rm "$output_obj"
  238.        $show "$command"
  239.        if $run eval "$command"; then :
  240.        else
  241. @@ -539,6 +546,7 @@
  242.  
  243.        # Suppress compiler output if we already did a PIC compilation.
  244.        command="$command$suppress_output"
  245. +      $run $rm "$output_obj"
  246.        $show "$command"
  247.        if $run eval "$command"; then :
  248.        else
  249. @@ -630,7 +638,13 @@
  250.  # #undef WIN32_LEAN_AND_MEAN
  251.  # #include <stdio.h>
  252.  #
  253. +# #ifdef __cplusplus
  254. +# extern "C" {
  255. +# #endif
  256.  # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  257. +# #ifdef __cplusplus
  258. +# }
  259. +# #endif
  260.  #
  261.  # #include <cygwin/cygwin_dll.h>
  262.  # DECLARE_CYGWIN_DLL( DllMain );
  263. @@ -815,6 +829,7 @@
  264.      ltlibs=
  265.      module=no
  266.      objs=
  267. +    prefer_static_libs=no
  268.      preload=no
  269.      prev=
  270.      prevarg=
  271. @@ -831,11 +846,21 @@
  272.      do
  273.        case "$arg" in
  274.        -all-static | -static)
  275. -    if test "X$arg" = "X-all-static" && test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  276. +    if test "X$arg" = "X-all-static"; then
  277. +      if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  278.          $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  279. +      fi
  280. +      if test -n "$link_static_flag"; then
  281. +        dlopen_self=$dlopen_self_static
  282. +      fi
  283. +    else
  284. +      if test -z "$pic_flag" && test -n "$link_static_flag"; then
  285. +        dlopen_self=$dlopen_self_static
  286. +      fi
  287.      fi
  288.      build_libtool_libs=no
  289.      build_old_libs=yes
  290. +    prefer_static_libs=yes
  291.      break
  292.      ;;
  293.        esac
  294. @@ -873,13 +898,19 @@
  295.            dlself=yes
  296.          elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  297.            dlself=yes
  298. +        else
  299. +          dlself=needless
  300. +          export_dynamic=yes
  301.          fi
  302.          prev=
  303.          continue
  304.          ;;
  305.        *)
  306. -        dlprefiles="$dlprefiles $arg"
  307. -        test "$prev" = dlfiles && dlfiles="$dlfiles $arg"
  308. +        if test "$prev" = dlfiles; then
  309. +          dlfiles="$dlfiles $arg"
  310. +        else
  311. +          dlprefiles="$dlprefiles $arg"
  312. +        fi
  313.          prev=
  314.          ;;
  315.        esac
  316. @@ -903,13 +934,26 @@
  317.        prev=
  318.        continue
  319.        ;;
  320. -    rpath)
  321. -      rpath="$rpath $arg"
  322. -      prev=
  323. -      continue
  324. -      ;;
  325. -    xrpath)
  326. -      xrpath="$xrpath $arg"
  327. +    rpath | xrpath)
  328. +      # We need an absolute path.
  329. +      case "$arg" in
  330. +      [\\/]* | [A-Za-z]:[\\/]*) ;;
  331. +      *)
  332. +        $echo "$modename: only absolute run-paths are allowed" 1>&2
  333. +        exit 1
  334. +        ;;
  335. +      esac
  336. +      if test "$prev" = rpath; then
  337. +        case "$rpath " in
  338. +        *" $arg "*) ;;
  339. +        *) rpath="$rpath $arg" ;;
  340. +        esac
  341. +      else
  342. +        case "$xrpath " in
  343. +        *" $arg "*) ;;
  344. +        *) xrpath="$xrpath $arg" ;;
  345. +        esac
  346. +      fi
  347.        prev=
  348.        continue
  349.        ;;
  350. @@ -928,7 +972,6 @@
  351.      if test -n "$link_static_flag"; then
  352.        compile_command="$compile_command $link_static_flag"
  353.        finalize_command="$finalize_command $link_static_flag"
  354. -      dlopen_self=$dlopen_self_static
  355.      fi
  356.      continue
  357.      ;;
  358. @@ -955,22 +998,16 @@
  359.      ;;
  360.  
  361.        -export-dynamic)
  362. -    if test "$export_dynamic" != yes; then
  363. -      export_dynamic=yes
  364. -      if test -n "$export_dynamic_flag_spec"; then
  365. -        eval arg=\"$export_dynamic_flag_spec\"
  366. -      else
  367. -        arg=
  368. -      fi
  369. -    fi
  370. +    export_dynamic=yes
  371. +    continue
  372.      ;;
  373.  
  374.        -export-symbols | -export-symbols-regex)
  375.      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  376. -      $echo "$modename: cannot have more than one -exported-symbols"
  377. +      $echo "$modename: not more than one -exported-symbols argument allowed"
  378.        exit 1
  379.      fi
  380. -    if test "$arg" = "-export-symbols"; then
  381. +    if test "X$arg" = "X-export-symbols"; then
  382.        prev=expsyms
  383.      else
  384.        prev=expsyms_regex
  385. @@ -979,14 +1016,18 @@
  386.      ;;
  387.  
  388.        -L*)
  389. -    dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'`
  390. +    dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  391. +    # We need an absolute path.
  392.      case "$dir" in
  393. -    /* | [A-Za-z]:[/\\]*)
  394. -      # Add the corresponding hardcode_libdir_flag, if it is not identical.
  395. -      ;;
  396. +    [\\/]* | [A-Za-z]:[\\/]*) ;;
  397.      *)
  398. -      $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2
  399. -      exit 1
  400. +      absdir=`cd "$dir" && pwd`
  401. +      if test -z "$absdir"; then
  402. +        $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  403. +        $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  404. +        absdir="$dir"
  405. +      fi
  406. +      dir="$absdir"
  407.        ;;
  408.      esac
  409.      case " $deplibs " in
  410. @@ -1010,20 +1051,29 @@
  411.      ;;
  412.  
  413.        -l*)
  414. +    if test "$arg" = "-lc"; then
  415. +      case "$host" in
  416. +      *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  417. +        # These systems don't actually have c library (as such)
  418. +        continue
  419. +        ;;
  420. +      esac
  421. +    elif test "$arg" = "-lm"; then
  422. +      case "$host" in
  423. +      *-*-cygwin* | *-*-beos*)
  424. +        # These systems don't actually have math library (as such)
  425. +        continue
  426. +        ;;
  427. +      esac
  428. +    fi
  429.      deplibs="$deplibs $arg"
  430.      ;;
  431.  
  432.        -module)
  433. -    if test "$module" != yes; then
  434. -      module=yes
  435. -      if test -n "$export_dynamic_flag_spec"; then
  436. -        eval arg=\"$export_dynamic_flag_spec\"
  437. -      else
  438. -        arg=
  439. -      fi
  440. -    fi
  441. +    module=yes
  442. +    continue
  443.      ;;
  444. -    
  445. +
  446.        -no-undefined)
  447.      allow_undefined=no
  448.      continue
  449. @@ -1047,7 +1097,19 @@
  450.      ;;
  451.  
  452.        -R*)
  453. -    xrpath="$xrpath "`$echo "X$arg" | $Xsed -e 's/^-R//'`
  454. +    dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  455. +    # We need an absolute path.
  456. +    case "$dir" in
  457. +    [\\/]* | [A-Za-z]:[\\/]*) ;;
  458. +    *)
  459. +      $echo "$modename: only absolute run-paths are allowed" 1>&2
  460. +      exit 1
  461. +      ;;
  462. +    esac
  463. +    case "$xrpath " in
  464. +    *" $dir "*) ;;
  465. +    *) xrpath="$xrpath $dir" ;;
  466. +    esac
  467.      continue
  468.      ;;
  469.  
  470. @@ -1056,7 +1118,6 @@
  471.      if test -z "$pic_flag" && test -n "$link_static_flag"; then
  472.        compile_command="$compile_command $link_static_flag"
  473.        finalize_command="$finalize_command $link_static_flag"
  474. -      dlopen_self=$dlopen_self_static
  475.      fi
  476.      continue
  477.      ;;
  478. @@ -1128,6 +1189,7 @@
  479.      # it will not redefine variable installed.
  480.      installed=yes
  481.  
  482. +    # Read the .la file
  483.      # If there is no directory component, then add one.
  484.      case "$arg" in
  485.      */* | *\\*) . $arg ;;
  486. @@ -1218,7 +1280,8 @@
  487.        prev=
  488.      fi
  489.  
  490. -    if test "$build_libtool_libs" = yes && test -n "$library_names"; then
  491. +    if test -n "$library_names" &&
  492. +       { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  493.        link_against_libtool_libs="$link_against_libtool_libs $arg"
  494.        if test -n "$shlibpath_var"; then
  495.          # Make sure the rpath contains only unique directories.
  496. @@ -1230,12 +1293,13 @@
  497.  
  498.        # We need an absolute path.
  499.        case "$dir" in
  500. -      /* | [A-Za-z]:[/\\]*) absdir="$dir" ;;
  501. +      [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  502.        *)
  503.          absdir=`cd "$dir" && pwd`
  504.          if test -z "$absdir"; then
  505. -          $echo "$modename: cannot determine absolute directory name of \`$libdir'" 1>&2
  506. -          exit 1
  507. +          $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  508. +          $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  509. +          absdir="$dir"
  510.          fi
  511.          ;;
  512.        esac
  513. @@ -1244,7 +1308,7 @@
  514.        # Skip directories that are in the system default run-time
  515.        # search path, unless they have been requested with -R.
  516.        case " $sys_lib_dlsearch_path " in
  517. -       *" $absdir "*) ;;
  518. +      *" $absdir "*) ;;
  519.        *)
  520.          case "$compile_rpath " in
  521.          *" $absdir "*) ;;
  522. @@ -1251,10 +1315,10 @@
  523.          *) compile_rpath="$compile_rpath $absdir" 
  524.          esac
  525.          ;;
  526. -       esac
  527. +      esac
  528.  
  529.        case " $sys_lib_dlsearch_path " in
  530. -       *" $libdir "*) ;;
  531. +      *" $libdir "*) ;;
  532.        *)
  533.          case "$finalize_rpath " in
  534.          *" $libdir "*) ;;
  535. @@ -1261,7 +1325,7 @@
  536.          *) finalize_rpath="$finalize_rpath $libdir"
  537.          esac
  538.          ;;
  539. -       esac
  540. +      esac
  541.  
  542.        lib_linked=yes
  543.        case "$hardcode_action" in
  544. @@ -1419,6 +1483,12 @@
  545.        exit 1
  546.      fi
  547.  
  548. +    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  549. +      eval arg=\"$export_dynamic_flag_spec\"
  550. +      compile_command="$compile_command $arg"
  551. +      finalize_command="$finalize_command $arg"
  552. +    fi
  553. +
  554.      oldlibs=
  555.      # calculate the name of the file, without its directory
  556.      outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  557. @@ -1441,7 +1511,7 @@
  558.      $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  559.        fi
  560.  
  561. -      if test -n "$dlfiles$dlprefiles"; then
  562. +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  563.      $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  564.        fi
  565.  
  566. @@ -1461,7 +1531,7 @@
  567.      $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  568.        fi
  569.  
  570. -      if test -n "$export_symbols"; then
  571. +      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  572.      $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  573.        fi
  574.  
  575. @@ -1500,11 +1570,6 @@
  576.      output_objdir="$output_objdir/$objdir"
  577.        fi
  578.  
  579. -      # All the library-specific variables (install_libdir is set above).
  580. -      library_names=
  581. -      old_library=
  582. -      dlname=
  583. -
  584.        if test -n "$objs"; then
  585.      $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
  586.      exit 1
  587. @@ -1516,7 +1581,7 @@
  588.       exit 1
  589.        fi
  590.  
  591. -      if test -n "$dlfiles$dlprefiles"; then
  592. +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  593.      $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
  594.        fi
  595.  
  596. @@ -1699,7 +1764,7 @@
  597.  
  598.      dependency_libs="$deplibs"
  599.      case "$host" in
  600. -    *-*-cygwin* | *-*-mingw* | *-*-os2*)
  601. +    *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  602.        # these systems don't actually have a c library (as such)!
  603.        ;;
  604.      *)
  605. @@ -1747,12 +1812,13 @@
  606.      droppeddeps=no
  607.      case "$deplibs_check_method" in
  608.      pass_all)
  609. +      # Don't check for shared/static.  Everything works.
  610. +      # This might be a little naive.  We might want to check
  611. +      # whether the library exists or not.  But this is on
  612. +      # osf3 & osf4 and I'm not really sure... Just
  613. +      # implementing what was already the behaviour.
  614.        newdeplibs=$deplibs
  615. -            ;; # Don't check for shared/static.  Everything works.
  616. -               # This might be a little naive.  We might want to check
  617. -               # whether the library exists or not.  But this is on
  618. -               # osf3 & osf4 and I'm not really sure... Just
  619. -               # implementing what was already the behaviour.
  620. +      ;;
  621.      test_compile)
  622.        # This code stresses the "libraries are programs" paradigm to its
  623.        # limits. Maybe even breaks it.  We compile a program, linking it
  624. @@ -1800,20 +1866,20 @@
  625.          # Did it work?
  626.          if test $? -eq 0 ; then
  627.            ldd_output=`ldd conftest`
  628. -            libname=`eval \\$echo \"$libname_spec\"`
  629. -            deplib_matches=`eval \\$echo \"$library_names_spec\"`
  630. -            set dummy $deplib_matches
  631. -            deplib_match=$2
  632. -            if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  633. -              newdeplibs="$newdeplibs $i"
  634. -            else
  635. -              droppeddeps=yes
  636. -              echo
  637. -              echo "*** Warning: This library needs some functionality provided by $i."
  638. -              echo "*** I have the capability to make that library automatically link in when"
  639. -              echo "*** you link to this library.  But I can only do this if you have a"
  640. -              echo "*** shared version of the library, which you do not appear to have."
  641. -            fi
  642. +          libname=`eval \\$echo \"$libname_spec\"`
  643. +          deplib_matches=`eval \\$echo \"$library_names_spec\"`
  644. +          set dummy $deplib_matches
  645. +          deplib_match=$2
  646. +          if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  647. +            newdeplibs="$newdeplibs $i"
  648. +          else
  649. +            droppeddeps=yes
  650. +            echo
  651. +            echo "*** Warning: This library needs some functionality provided by $i."
  652. +            echo "*** I have the capability to make that library automatically link in when"
  653. +            echo "*** you link to this library.  But I can only do this if you have a"
  654. +            echo "*** shared version of the library, which you do not appear to have."
  655. +          fi
  656.          else
  657.            droppeddeps=yes
  658.            echo
  659. @@ -1827,7 +1893,6 @@
  660.            fi
  661.          done
  662.        fi
  663. -      deplibs=$newdeplibs
  664.        ;;
  665.      file_magic*)
  666.        set dummy $deplibs_check_method
  667. @@ -1841,7 +1906,7 @@
  668.              potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  669.              for potent_lib in $potential_libs; do
  670.                # Follow soft links.
  671. -              if ls -lLd "$potlib" 2>/dev/null \
  672. +              if ls -lLd "$potent_lib" 2>/dev/null \
  673.               | grep " -> " >/dev/null; then
  674.              continue 
  675.                fi
  676. @@ -1854,11 +1919,11 @@
  677.                while test -h "$potlib" 2>/dev/null; do
  678.              potliblink=`ls -ld $potlib | sed 's/.* -> //'`
  679.              case "$potliblink" in
  680. -            /*) potlib="$potliblink";;
  681. +            [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  682.              *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  683.              esac
  684.                done
  685. -              if eval $file_magic_cmd \"\$potlib\" \
  686. +              if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  687.               | sed 10q \
  688.               | egrep "$file_magic_regex" > /dev/null; then
  689.              newdeplibs="$newdeplibs $a_deplib"
  690. @@ -1881,7 +1946,8 @@
  691.          fi
  692.        done # Gone through all deplibs.
  693.        ;;
  694. -    none | unknown | *) newdeplibs=""
  695. +    none | unknown | *)
  696. +      newdeplibs=""
  697.        if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  698.             -e 's/ -[LR][^ ]*//g' -e 's/[     ]//g' |
  699.           grep . >/dev/null; then
  700. @@ -1923,8 +1989,6 @@
  701.          else
  702.            build_libtool_libs=no
  703.          fi
  704. -        dlname=
  705. -        library_names=
  706.        else
  707.          echo "*** The inter-library dependencies that have been dropped here will be"
  708.          echo "*** automatically added whenever a program is linked with this library"
  709. @@ -1931,13 +1995,17 @@
  710.          echo "*** or is declared to -dlopen it."
  711.        fi
  712.      fi
  713. +    # Done checking deplibs!
  714. +    deplibs=$newdeplibs
  715.        fi
  716.  
  717. -      # test again, we may have decided not to build it any more
  718. +      # All the library-specific variables (install_libdir is set above).
  719. +      library_names=
  720. +      old_library=
  721. +      dlname=
  722. +      
  723. +      # Test again, we may have decided not to build it any more
  724.        if test "$build_libtool_libs" = yes; then
  725. -    deplibs=$newdeplibs
  726. -    # Done checking deplibs!
  727.      # Get the real and link names of the library.
  728.      eval library_names=\"$library_names_spec\"
  729.      set dummy $library_names
  730. @@ -1960,7 +2028,10 @@
  731.      # (e.g. aix) incase we are running --disable-static
  732.      for obj in $libobjs; do
  733.        oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
  734. -      test -f $oldobj || ${LN_S} $obj $oldobj
  735. +      if test ! -f $oldobj; then
  736. +        $show "${LN_S} $obj $oldobj"
  737. +        $run ${LN_S} $obj $oldobj || exit $?
  738. +      fi
  739.      done
  740.  
  741.      # Use standard objects if they are pic
  742. @@ -1971,11 +2042,25 @@
  743.          eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  744.        fi
  745.      else
  746. +      gentop="$output_objdir/${outputname}x"
  747. +      $show "${rm}r $gentop"
  748. +      $run ${rm}r "$gentop"
  749. +      $show "mkdir $gentop"
  750. +      $run mkdir "$gentop"
  751. +      status=$?
  752. +      if test $status -ne 0 && test ! -d "$gentop"; then
  753. +        exit $status
  754. +      fi
  755. +      generated="$generated $gentop"
  756. +      
  757.        for xlib in $convenience; do
  758.          # Extract the objects.
  759. -        xdir="$xlib"x
  760. -        generated="$generated $xdir"
  761. +        case "$xlib" in
  762. +        [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  763. +        *) xabs=`pwd`"/$xlib" ;;
  764. +        esac
  765.          xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  766. +        xdir="$gentop/$xlib"
  767.  
  768.          $show "${rm}r $xdir"
  769.          $run ${rm}r "$xdir"
  770. @@ -1985,8 +2070,8 @@
  771.          if test $status -ne 0 && test ! -d "$xdir"; then
  772.            exit $status
  773.          fi
  774. -        $show "(cd $xdir && $AR x ../$xlib)"
  775. -        $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $?
  776. +        $show "(cd $xdir && $AR x $xabs)"
  777. +        $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  778.  
  779.          libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  780.        done
  781. @@ -1994,7 +2079,6 @@
  782.  
  783.      if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  784.        eval flag=\"$thread_safe_flag_spec\"
  785. -
  786.        linkopts="$linkopts $flag"
  787.      fi
  788.  
  789. @@ -2002,7 +2086,7 @@
  790.      if test -z "$export_symbols"; then
  791.        if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  792.          $show "generating symbol list for \`$libname.la'"
  793. -        export_symbols="$objdir/$libname.exp"
  794. +        export_symbols="$output_objdir/$libname.exp"
  795.          $run $rm $export_symbols
  796.          eval cmds=\"$export_symbols_cmds\"
  797.          IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'
  798. @@ -2065,7 +2149,7 @@
  799.      $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  800.        fi
  801.  
  802. -      if test -n "$dlfiles$dlprefiles"; then
  803. +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  804.      $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  805.        fi
  806.  
  807. @@ -2167,11 +2251,6 @@
  808.      fi 
  809.        fi
  810.      
  811. -      if test "$dlself" = yes && test "$export_dynamic" = no; then
  812. -    $echo "$modename: error: \`-dlopen self' requires \`-export-dynamic'" 1>&2
  813. -    exit 1
  814. -      fi
  815. -
  816.        if test -n "$rpath$xrpath"; then
  817.      # If the user specified any rpath flags, then add them.
  818.      for libdir in $rpath $xrpath; do
  819. @@ -2207,7 +2286,6 @@
  820.          fi
  821.        else
  822.          eval flag=\"$hardcode_libdir_flag_spec\"
  823. -
  824.          rpath="$rpath $flag"
  825.        fi
  826.      elif test -n "$runpath_var"; then
  827. @@ -2244,7 +2322,6 @@
  828.          fi
  829.        else
  830.          eval flag=\"$hardcode_libdir_flag_spec\"
  831. -
  832.          rpath="$rpath $flag"
  833.        fi
  834.      elif test -n "$runpath_var"; then
  835. @@ -2269,6 +2346,16 @@
  836.      output_objdir="$output_objdir/$objdir"
  837.        fi
  838.  
  839. +      # Create the binary in the object directory, then wrap it.
  840. +      if test ! -d $output_objdir; then
  841. +    $show "$mkdir $output_objdir"
  842. +    $run $mkdir $output_objdir
  843. +    status=$?
  844. +    if test $status -ne 0 && test ! -d $output_objdir; then
  845. +      exit $status
  846. +    fi
  847. +      fi
  848. +
  849.        if test -n "$libobjs" && test "$build_old_libs" = yes; then
  850.      # Transform all the library objects into standard objects.
  851.      compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  852. @@ -2289,24 +2376,15 @@
  853.      "") ;;
  854.      *.c)
  855.        # Discover the nlist of each of the dlfiles.
  856. -      nlist="$objdir/${output}.nm"
  857. +      nlist="$output_objdir/${outputname}.nm"
  858.  
  859. -      if test -d $objdir; then
  860. -        $show "$rm $nlist ${nlist}S ${nlist}T"
  861. -        $run $rm "$nlist" "${nlist}S" "${nlist}T"
  862. -      else
  863. -        $show "$mkdir $objdir"
  864. -        $run $mkdir $objdir
  865. -        status=$?
  866. -        if test $status -ne 0 && test ! -d $objdir; then
  867. -          exit $status
  868. -        fi
  869. -      fi
  870. +      $show "$rm $nlist ${nlist}S ${nlist}T"
  871. +      $run $rm "$nlist" "${nlist}S" "${nlist}T"
  872.  
  873.        # Parse the name list into a source file.
  874. -      $show "creating $objdir/$dlsyms"
  875. +      $show "creating $output_objdir/$dlsyms"
  876.  
  877. -      $echo > "$objdir/$dlsyms" "\
  878. +      test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  879.  /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  880.  /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  881.  
  882. @@ -2323,7 +2401,7 @@
  883.        if test "$dlself" = yes; then
  884.          $show "generating symbol list for \`$output'"
  885.  
  886. -        echo ': @PROGRAM@ ' > "$nlist"
  887. +        test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  888.  
  889.          # Add our own program objects to the symbol list.
  890.          progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  891. @@ -2344,13 +2422,12 @@
  892.  
  893.          # Prepare the list of exported symbols
  894.          if test -z "$export_symbols"; then
  895. -          export_symbols="$objdir/$output.exp"
  896. +          export_symbols="$output_objdir/$output.exp"
  897.            $run $rm $export_symbols
  898.            $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  899.          else
  900. -          $run $rm $export_symbols
  901. -          $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$objdir/$output.exp"'
  902. -          $run eval 'grep -f "$objdir/$output.exp" < "$nlist" > "$nlist"T'
  903. +          $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  904. +          $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  905.            $run eval 'mv "$nlist"T "$nlist"'
  906.          fi
  907.        fi
  908. @@ -2426,7 +2503,7 @@
  909.        fi
  910.  
  911.        pic_flag_for_symtable=
  912. -          case "$host" in
  913. +      case "$host" in
  914.        # compiling the symbol table file with pic_flag works around
  915.        # a FreeBSD bug that causes programs to crash when -lm is
  916.        # linked before any other PIC object.  But we must not use
  917. @@ -2440,12 +2517,16 @@
  918.        esac
  919.  
  920.        # Now compile the dynamic symbol file.
  921. -      $show "(cd $objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  922. -      $run eval '(cd $objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  923. +      $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  924. +      $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  925. +
  926. +      # Clean up the generated files.
  927. +      $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  928. +      $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  929.  
  930.        # Transform the symbol file into the correct name.
  931. -      compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
  932. -      finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
  933. +      compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  934. +      finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  935.        ;;
  936.      *)
  937.        $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  938. @@ -2470,7 +2551,15 @@
  939.      # We have no uninstalled library dependencies, so finalize right now.
  940.      $show "$link_command"
  941.      $run eval "$link_command"
  942. -    exit $?
  943. +    status=$?
  944. +    
  945. +    # Delete the generated files.
  946. +    if test -n "$dlsyms"; then
  947. +      $show "$rm $output_objdir/${outputname}S.${objext}"
  948. +      $run $rm "$output_objdir/${outputname}S.${objext}"
  949. +    fi
  950. +
  951. +    exit $status
  952.        fi
  953.  
  954.        if test -n "$shlibpath_var"; then
  955. @@ -2478,7 +2567,7 @@
  956.      rpath=
  957.      for dir in $temp_rpath; do
  958.        case "$dir" in
  959. -      /* | [A-Za-z]:[/\\]*)
  960. +      [\\/]* | [A-Za-z]:[\\/]*)
  961.          # Absolute path.
  962.          rpath="$rpath$dir:"
  963.          ;;
  964. @@ -2524,7 +2613,6 @@
  965.      link_command="$compile_var$compile_command$compile_rpath"
  966.      relink_command="$finalize_var$finalize_command$finalize_rpath"
  967.      
  968. -    # AGH! Flame the AIX and HP-UX people for me, will ya?
  969.      $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  970.      $echo "$modename: \`$output' will be relinked during installation" 1>&2
  971.        else
  972. @@ -2545,17 +2633,7 @@
  973.        # Replace the output file specification.
  974.        link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  975.        
  976. -      # Create the binary in the object directory, then wrap it.
  977. -      if test ! -d $output_objdir; then
  978. -    $show "$mkdir $output_objdir"
  979. -    $run $mkdir $output_objdir
  980. -    status=$?
  981. -    if test $status -ne 0 && test ! -d $objdir; then
  982. -      exit $status
  983. -    fi
  984. -      fi
  985. -
  986. -      # Delete the old output file.
  987. +      # Delete the old output files.
  988.        $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  989.  
  990.        $show "$link_command"
  991. @@ -2572,7 +2650,7 @@
  992.        # Quote $echo for shipping.
  993.        if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  994.      case "$0" in
  995. -    /* | [A-Za-z]:[/\\]*) qecho="$SHELL $0 --fallback-echo";;
  996. +    [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  997.      *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  998.      esac
  999.      qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  1000. @@ -2649,7 +2727,7 @@
  1001.      # If there was a directory component, then change thisdir.
  1002.      if test \"x\$destdir\" != \"x\$file\"; then
  1003.        case \"\$destdir\" in
  1004. -      /* | [A-Za-z]:[/\\]*) thisdir=\"\$destdir\" ;;
  1005. +      [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
  1006.        *) thisdir=\"\$thisdir/\$destdir\" ;;
  1007.        esac
  1008.      fi
  1009. @@ -2787,31 +2865,58 @@
  1010.      addlibs="$old_convenience"
  1011.        fi
  1012.  
  1013. -      # Add in members from convenience archives.
  1014. -      for xlib in $addlibs; do
  1015. -    # Extract the objects.
  1016. -    xdir="$xlib"x
  1017. -    generated="$generated $xdir"
  1018. -    xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  1019. -
  1020. -    $show "${rm}r $xdir"
  1021. -    $run ${rm}r "$xdir"
  1022. -    $show "mkdir $xdir"
  1023. -    $run mkdir "$xdir"
  1024. +      if test -n "$addlibs"; then
  1025. +    gentop="$output_objdir/${outputname}x"
  1026. +    $show "${rm}r $gentop"
  1027. +    $run ${rm}r "$gentop"
  1028. +    $show "mkdir $gentop"
  1029. +    $run mkdir "$gentop"
  1030.      status=$?
  1031. -    if test $status -ne 0 && test ! -d "$xdir"; then
  1032. +    if test $status -ne 0 && test ! -d "$gentop"; then
  1033.        exit $status
  1034.      fi
  1035. -    $show "(cd $xdir && $AR x ../$xlib)"
  1036. -    $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $?
  1037. +    generated="$generated $gentop"
  1038. +      
  1039. +    # Add in members from convenience archives.
  1040. +    for xlib in $addlibs; do
  1041. +      # Extract the objects.
  1042. +      case "$xlib" in
  1043. +      [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  1044. +      *) xabs=`pwd`"/$xlib" ;;
  1045. +      esac
  1046. +      xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  1047. +      xdir="$gentop/$xlib"
  1048.  
  1049. -    oldobjs="$oldobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  1050. -      done
  1051. +      $show "${rm}r $xdir"
  1052. +      $run ${rm}r "$xdir"
  1053. +      $show "mkdir $xdir"
  1054. +      $run mkdir "$xdir"
  1055. +      status=$?
  1056. +      if test $status -ne 0 && test ! -d "$xdir"; then
  1057. +        exit $status
  1058. +      fi
  1059. +      $show "(cd $xdir && $AR x $xabs)"
  1060. +      $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  1061. +
  1062. +      oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  1063. +    done
  1064. +      fi
  1065.  
  1066.        # Do each command in the archive commands.
  1067.        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  1068.      eval cmds=\"$old_archive_from_new_cmds\"
  1069.        else
  1070. +    # Ensure that we have .o objects in place incase we decided
  1071. +    # not to build a shared library, and have fallen back to building
  1072. +    # static libs even though --disable-static was passed!
  1073. +    for oldobj in $oldobjs; do
  1074. +      if test ! -f $oldobj; then
  1075. +        obj=`$echo "X$oldobj" | $Xsed -e "$o2lo"`
  1076. +        $show "${LN_S} $obj $oldobj"
  1077. +        $run ${LN_S} $obj $oldobj || exit $?
  1078. +      fi
  1079. +    done
  1080. +
  1081.      eval cmds=\"$old_archive_cmds\"
  1082.        fi
  1083.        IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'
  1084. @@ -2845,9 +2950,20 @@
  1085.  
  1086.        # Only create the output if not a dry run.
  1087.        if test -z "$run"; then
  1088. -    $echo > $output "\
  1089. -# $output - a libtool library file
  1090. +    for installed in no yes; do
  1091. +      if test "$installed" = yes; then
  1092. +        if test -z "$install_libdir"; then
  1093. +          break
  1094. +        fi
  1095. +        output="$output_objdir/$outputname"i
  1096. +      fi
  1097. +      $rm $output
  1098. +      $echo > $output "\
  1099. +# $outputname - a libtool library file
  1100.  # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  1101. +#
  1102. +# Please DO NOT delete this file!
  1103. +# It is necessary for linking the library.
  1104.  
  1105.  # The name that we can dlopen(3).
  1106.  dlname='$dlname'
  1107. @@ -2867,15 +2983,12 @@
  1108.  revision=$revision
  1109.  
  1110.  # Is this an already installed library?
  1111. -installed=no
  1112. +installed=$installed
  1113.  
  1114.  # Directory that this library needs to be installed in:
  1115.  libdir='$install_libdir'\
  1116.  "
  1117. -
  1118. -    $rm "$output_objdir/$outputname"i
  1119. -    sed 's/^installed=no$/installed=yes/' \
  1120. -      < "$output" > "$output_objdir/$outputname"i || exit 1
  1121. +    done
  1122.        fi
  1123.  
  1124.        # Do a symbolic link so that the libtool archive can be found in
  1125. @@ -3012,7 +3125,7 @@
  1126.        fi
  1127.      fi
  1128.      case "$destdir" in
  1129. -    /* | [A-Za-z]:[/\\]*) ;;
  1130. +    [\\/]* | [A-Za-z]:[\\/]*) ;;
  1131.      *)
  1132.        for file in $files; do
  1133.      case "$file" in
  1134. @@ -3123,12 +3236,6 @@
  1135.      # Install the pseudo-library for information purposes.
  1136.      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  1137.      instname="$dir/$name"i
  1138. -    if test ! -f "$instname"; then
  1139. -      # Just in case it was removed...
  1140. -      $show "Creating $instname"
  1141. -      $rm "$instname"
  1142. -      sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
  1143. -    fi
  1144.      $show "$install_prog $instname $destdir/$name"
  1145.      $run eval "$install_prog $instname $destdir/$name" || exit $?
  1146.  
  1147. @@ -3226,21 +3333,29 @@
  1148.  
  1149.        outputname=
  1150.        if test "$fast_install" = no && test -n "$relink_command"; then
  1151. -        if test "$finalize" = yes; then
  1152. -          outputname="/tmp/$$-$file"
  1153. +        if test "$finalize" = yes && test -z "$run"; then
  1154. +          tmpdir="/tmp"
  1155. +          test -n "$TMPDIR" && tmpdir="$TMPDIR"
  1156. +          tmpdir="$tmpdir/libtool-$$"
  1157. +          if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
  1158. +          else
  1159. +        $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  1160. +        continue
  1161. +          fi
  1162. +          outputname="$tmpdir/$file"
  1163.            # Replace the output file specification.
  1164.            relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  1165.  
  1166. -          $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2
  1167.            $show "$relink_command"
  1168.            if $run eval "$relink_command"; then :
  1169.            else
  1170.          $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  1171. +        ${rm}r "$tmpdir"
  1172.          continue
  1173.            fi
  1174.            file="$outputname"
  1175.          else
  1176. -          $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2
  1177. +          $echo "$modename: warning: cannot relink \`$file'" 1>&2
  1178.          fi
  1179.        else
  1180.          # Install the binary that we compiled earlier.
  1181. @@ -3250,7 +3365,7 @@
  1182.  
  1183.      $show "$install_prog$stripme $file $destfile"
  1184.      $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  1185. -    test -n "$outputname" && $rm $outputname
  1186. +    test -n "$outputname" && ${rm}r "$tmpdir"
  1187.      ;;
  1188.        esac
  1189.      done
  1190. @@ -3718,6 +3833,8 @@
  1191.    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  1192.    -export-symbols SYMFILE
  1193.              try to export only the symbols listed in SYMFILE
  1194. +  -export-symbols-regex REGEX
  1195. +            try to export only the symbols matching REGEX
  1196.    -LLIBDIR          search LIBDIR for required installed libraries
  1197.    -lNAME            OUTPUT-FILE requires the installed library libNAME
  1198.    -module           build a library that can dlopened
  1199. @@ -3748,7 +3865,7 @@
  1200.    ;;
  1201.  
  1202.  uninstall)
  1203. -  $echo
  1204. +  $echo \
  1205.  "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  1206.  
  1207.  Remove libraries from an installation directory.
  1208. --- ./ltconfig    Sat Jun 26 23:56:30 1999
  1209. +++ ../libxml-1.3.0/./ltconfig    Sat Jul  3 10:58:45 1999
  1210. @@ -2,7 +2,7 @@
  1211.  
  1212.  # ltconfig - Create a system-specific libtool.
  1213.  # Copyright (C) 1996-1999 Free Software Foundation, Inc.
  1214. -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1215. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1216.  #
  1217.  # This file is free software; you can redistribute it and/or modify it
  1218.  # under the terms of the GNU General Public License as published by
  1219. @@ -32,12 +32,8 @@
  1220.    # Discard the --no-reexec flag, and continue.
  1221.    shift
  1222.  elif test "X$1" = X--fallback-echo; then
  1223. -  # used as fallback echo
  1224. -  shift
  1225. -  cat <<EOF
  1226. -$*
  1227. -EOF
  1228. -  exit 0
  1229. +  # Avoid inline document here, it may be left over
  1230. +  :
  1231.  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  1232.    # Yippee, $echo works!
  1233.    :
  1234. @@ -46,6 +42,15 @@
  1235.    exec "$SHELL" "$0" --no-reexec ${1+"$@"}
  1236.  fi
  1237.  
  1238. +if test "X$1" = X--fallback-echo; then
  1239. +  # used as fallback echo
  1240. +  shift
  1241. +  cat <<EOF
  1242. +$*
  1243. +EOF
  1244. +  exit 0
  1245. +fi
  1246. +
  1247.  # Find the correct PATH separator.  Usually this is `:', but
  1248.  # DJGPP uses `;' like DOS.
  1249.  if test "X${PATH_SEPARATOR+set}" != "Xset"; then
  1250. @@ -82,7 +87,7 @@
  1251.  
  1252.    IFS="${IFS=     }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1253.    for dir in $PATH /usr/ucb; do
  1254. -    if test -f $dir/echo &&
  1255. +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1256.         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1257.         test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  1258.        echo="$dir/echo"
  1259. @@ -97,7 +102,8 @@
  1260.         test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  1261.        # This shell has a builtin print -r that does the trick.
  1262.        echo='print -r'
  1263. -    elif test -f /bin/ksh && test "X$CONFIG_SHELL" != X/bin/ksh; then
  1264. +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1265. +     test "X$CONFIG_SHELL" != X/bin/ksh; then
  1266.        # If we have ksh, try running ltconfig again with it.
  1267.        ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
  1268.        export ORIGINAL_CONFIG_SHELL
  1269. @@ -163,8 +169,8 @@
  1270.  # Constants:
  1271.  PROGRAM=ltconfig
  1272.  PACKAGE=libtool
  1273. -VERSION=1.2f
  1274. -TIMESTAMP=" (1.385 1999/03/15 17:24:54)"
  1275. +VERSION=1.3.2
  1276. +TIMESTAMP=" (1.385.2.150 1999/05/26 00:28:32)"
  1277.  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
  1278.  ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
  1279.  rm="rm -f"
  1280. @@ -179,6 +185,7 @@
  1281.  enable_static=yes
  1282.  enable_fast_install=yes
  1283.  enable_dlopen=unknown
  1284. +enable_win32_dll=no
  1285.  ltmain=
  1286.  silent=
  1287.  srcdir=
  1288. @@ -200,11 +207,14 @@
  1289.  old_CC="$CC"
  1290.  old_CFLAGS="$CFLAGS"
  1291.  old_CPPFLAGS="$CPPFLAGS"
  1292. +old_LDFLAGS="$LDFLAGS"
  1293.  old_LD="$LD"
  1294.  old_LN_S="$LN_S"
  1295. +old_LIBS="$LIBS"
  1296.  old_NM="$NM"
  1297.  old_RANLIB="$RANLIB"
  1298.  old_DLLTOOL="$DLLTOOL"
  1299. +old_OBJDUMP="$OBJDUMP"
  1300.  old_AS="$AS"
  1301.  
  1302.  # Parse the command line options.
  1303. @@ -235,7 +245,7 @@
  1304.      --disable-static       do not build static libraries
  1305.      --disable-fast-install do not optimize for fast installation
  1306.      --enable-dlopen        enable dlopen support
  1307. -    --enable-dlopen-self   enable support for dlopening programs
  1308. +    --enable-win32-dll     enable building dlls on win32 hosts
  1309.      --help                 display this help and exit
  1310.      --no-verify            do not verify that HOST is a valid host type
  1311.  -o, --output=FILE          specify the output file [default=$default_ofile]
  1312. @@ -269,6 +279,8 @@
  1313.  
  1314.    --enable-dlopen) enable_dlopen=yes ;;
  1315.  
  1316. +  --enable-win32-dll) enable_win32_dll=yes ;;
  1317. +
  1318.    --quiet | --silent) silent=yes ;;
  1319.  
  1320.    --srcdir) prev=srcdir ;;
  1321. @@ -463,6 +475,9 @@
  1322.  # Set a sane default for `AR'.
  1323.  test -z "$AR" && AR=ar
  1324.  
  1325. +# Set a sane default for `OBJDUMP'.
  1326. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1327. +
  1328.  # If RANLIB is not set, then run the test.
  1329.  if test "${RANLIB+set}" != "set"; then
  1330.    result=no
  1331. @@ -471,7 +486,7 @@
  1332.    IFS="${IFS=     }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1333.    for dir in $PATH; do
  1334.      test -z "$dir" && dir=.
  1335. -    if test -f $dir/ranlib; then
  1336. +    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
  1337.        RANLIB="ranlib"
  1338.        result="ranlib"
  1339.        break
  1340. @@ -487,8 +502,9 @@
  1341.    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1342.  fi
  1343.  
  1344. -# Set sane defaults for `DLLTOOL' and `AS', used on cygwin.
  1345. +# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
  1346.  test -z "$DLLTOOL" && DLLTOOL=dlltool
  1347. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1348.  test -z "$AS" && AS=as
  1349.  
  1350.  # Check to see if we are using GCC.
  1351. @@ -498,9 +514,8 @@
  1352.      echo $ac_n "checking for gcc... $ac_c" 1>&6
  1353.      IFS="${IFS=     }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1354.      for dir in $PATH; do
  1355. -      IFS="$save_ifs"
  1356.        test -z "$dir" && dir=.
  1357. -      if test -f $dir/gcc; then
  1358. +      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
  1359.      CC="gcc"
  1360.      break
  1361.        fi
  1362. @@ -521,7 +536,7 @@
  1363.      cc_rejected=no
  1364.      for dir in $PATH; do
  1365.        test -z "$dir" && dir=.
  1366. -      if test -f $dir/cc; then
  1367. +      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
  1368.      if test "$dir/cc" = "/usr/ucb/cc"; then
  1369.        cc_rejected=yes
  1370.        continue
  1371. @@ -561,7 +576,7 @@
  1372.    # Now see if the compiler is really GCC.
  1373.    with_gcc=no
  1374.    echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
  1375. -  echo "$progname:564: checking whether we are using GNU C" >&5
  1376. +  echo "$progname:579: checking whether we are using GNU C" >&5
  1377.  
  1378.    $rm conftest.c
  1379.    cat > conftest.c <<EOF
  1380. @@ -569,7 +584,7 @@
  1381.    yes;
  1382.  #endif
  1383.  EOF
  1384. -  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1385. +  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1386.      with_gcc=yes
  1387.    fi
  1388.    $rm conftest.c
  1389. @@ -583,8 +598,8 @@
  1390.  echo $ac_n "checking for object suffix... $ac_c" 1>&6
  1391.  $rm conftest*
  1392.  echo 'int i = 1;' > conftest.c
  1393. -echo "$progname:586: checking for object suffix" >& 5
  1394. -if { (eval echo $progname:587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
  1395. +echo "$progname:601: checking for object suffix" >& 5
  1396. +if { (eval echo $progname:602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
  1397.    # Append any warnings to the config.log.
  1398.    cat conftest.err 1>&5
  1399.  
  1400. @@ -635,6 +650,11 @@
  1401.      # like `-m68040'.
  1402.      pic_flag='-m68020 -resident32 -malways-restore-a4'
  1403.      ;;
  1404. +  sysv4*MP*)
  1405. +    if test -d /usr/nec; then
  1406. +       pic_flag=-Kconform_pic
  1407. +    fi
  1408. +    ;;
  1409.    *)
  1410.      pic_flag='-fPIC'
  1411.      ;;
  1412. @@ -688,7 +708,7 @@
  1413.      wl='-Qoption ld '
  1414.      ;;
  1415.  
  1416. -  sysv4.2uw2* | sysv4.3* | sysv5*)
  1417. +  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1418.      pic_flag='-KPIC'
  1419.      link_static_flag='-Bstatic'
  1420.      wl='-Wl,'
  1421. @@ -698,7 +718,12 @@
  1422.      pic_flag='-pic'
  1423.      link_static_flag='-Bstatic'
  1424.      ;;
  1425. -
  1426. +  sysv4*MP*)
  1427. +    if test -d /usr/nec ;then
  1428. +      pic_flag='-Kconform_pic'
  1429. +      link_static_flag='-Bstatic'
  1430. +    fi
  1431. +    ;;
  1432.    *)
  1433.      can_build_shared=no
  1434.      ;;
  1435. @@ -714,8 +739,8 @@
  1436.    echo "int some_variable = 0;" > conftest.c
  1437.    save_CFLAGS="$CFLAGS"
  1438.    CFLAGS="$CFLAGS $pic_flag -DPIC"
  1439. -  echo "$progname:717: checking if $compiler PIC flag $pic_flag works" >&5
  1440. -  if { (eval echo $progname:718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
  1441. +  echo "$progname:742: checking if $compiler PIC flag $pic_flag works" >&5
  1442. +  if { (eval echo $progname:743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
  1443.      # Append any warnings to the config.log.
  1444.      cat conftest.err 1>&5
  1445.      
  1446. @@ -753,16 +778,26 @@
  1447.  
  1448.  # Check to see if options -o and -c are simultaneously supported by compiler
  1449.  echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
  1450. +$rm -r conftest 2>/dev/null
  1451. +mkdir conftest
  1452. +cd conftest
  1453.  $rm conftest*
  1454.  echo "int some_variable = 0;" > conftest.c
  1455. +mkdir out
  1456. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  1457. +# that will create temporary files in the current directory regardless of
  1458. +# the output directory.  Thus, making CWD read-only will cause this test
  1459. +# to fail, enabling locking or at least warning the user not to do parallel
  1460. +# builds.
  1461. +chmod -w .
  1462.  save_CFLAGS="$CFLAGS"
  1463. -CFLAGS="$CFLAGS -c -o conftest2.o"
  1464. -echo "$progname:760: checking if $compiler supports -c -o file.o" >&5
  1465. -if { (eval echo $progname:761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest2.o; then
  1466. +CFLAGS="$CFLAGS -o out/conftest2.o"
  1467. +echo "$progname:795: checking if $compiler supports -c -o file.o" >&5
  1468. +if { (eval echo $progname:796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
  1469.  
  1470.    # The compiler can only warn and ignore the option if not recognized
  1471.    # So say no if there are warnings
  1472. -    if test -s conftest.err; then
  1473. +    if test -s out/conftest.err; then
  1474.        echo "$ac_t"no 1>&6
  1475.        compiler_c_o=no
  1476.      else
  1477. @@ -771,12 +806,17 @@
  1478.      fi
  1479.  else
  1480.    # Append any errors to the config.log.
  1481. -  cat conftest.err 1>&5
  1482. +  cat out/conftest.err 1>&5
  1483.    compiler_c_o=no
  1484.    echo "$ac_t"no 1>&6
  1485.  fi
  1486.  CFLAGS="$save_CFLAGS"
  1487. -$rm conftest*
  1488. +chmod u+w .
  1489. +$rm conftest* out/*
  1490. +rmdir out
  1491. +cd ..
  1492. +rmdir conftest
  1493. +$rm -r conftest 2>/dev/null
  1494.  
  1495.  if test x"$compiler_c_o" = x"yes"; then
  1496.    # Check to see if we can write to a .lo
  1497. @@ -785,8 +825,8 @@
  1498.    echo "int some_variable = 0;" > conftest.c
  1499.    save_CFLAGS="$CFLAGS"
  1500.    CFLAGS="$CFLAGS -c -o conftest.lo"
  1501. -  echo "$progname:788: checking if $compiler supports -c -o file.lo" >&5
  1502. -if { (eval echo $progname:789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
  1503. +  echo "$progname:828: checking if $compiler supports -c -o file.lo" >&5
  1504. +if { (eval echo $progname:829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
  1505.  
  1506.      # The compiler can only warn and ignore the option if not recognized
  1507.      # So say no if there are warnings
  1508. @@ -837,8 +877,8 @@
  1509.    echo "int some_variable = 0;" > conftest.c
  1510.    save_CFLAGS="$CFLAGS"
  1511.    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
  1512. -  echo "$progname:840: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  1513. -  if { (eval echo $progname:841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
  1514. +  echo "$progname:880: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  1515. +  if { (eval echo $progname:881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
  1516.  
  1517.      # The compiler can only warn and ignore the option if not recognized
  1518.      # So say no if there are warnings
  1519. @@ -881,8 +921,8 @@
  1520.  echo 'main(){return(0);}' > conftest.c
  1521.  save_LDFLAGS="$LDFLAGS"
  1522.  LDFLAGS="$LDFLAGS $link_static_flag"
  1523. -echo "$progname:884: checking if $compiler static flag $link_static_flag works" >&5
  1524. -if { (eval echo $progname:885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1525. +echo "$progname:924: checking if $compiler static flag $link_static_flag works" >&5
  1526. +if { (eval echo $progname:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1527.    echo "$ac_t$link_static_flag" 1>&6
  1528.  else
  1529.    echo "$ac_t"none 1>&6
  1530. @@ -894,9 +934,9 @@
  1531.  if test -z "$LN_S"; then
  1532.    # Check to see if we can use ln -s, or we need hard links.
  1533.    echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
  1534. -  $rm conftestdata
  1535. -  if ln -s X conftestdata 2>/dev/null; then
  1536. -    $rm conftestdata
  1537. +  $rm conftest.dat
  1538. +  if ln -s X conftest.dat 2>/dev/null; then
  1539. +    $rm conftest.dat
  1540.      LN_S="ln -s"
  1541.    else
  1542.      LN_S=ln
  1543. @@ -914,11 +954,11 @@
  1544.    if test "$with_gcc" = yes; then
  1545.      # Check if gcc -print-prog-name=ld gives a path.
  1546.      echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
  1547. -    echo "$progname:917: checking for ld used by GCC" >&5
  1548. +    echo "$progname:957: checking for ld used by GCC" >&5
  1549.      ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1550.      case "$ac_prog" in
  1551.      # Accept absolute paths.
  1552. -    /* | [A-Za-z]:[\\/]*)
  1553. +    [\\/]* | [A-Za-z]:[\\/]*)
  1554.        re_direlt='/[^/][^/]*/\.\./'
  1555.        # Canonicalize the path of ld
  1556.        ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1557. @@ -938,10 +978,10 @@
  1558.      esac
  1559.    elif test "$with_gnu_ld" = yes; then
  1560.      echo $ac_n "checking for GNU ld... $ac_c" 1>&6
  1561. -    echo "$progname:941: checking for GNU ld" >&5
  1562. +    echo "$progname:981: checking for GNU ld" >&5
  1563.    else
  1564.      echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1565. -    echo "$progname:944: checking for non-GNU ld" >&5
  1566. +    echo "$progname:984: checking for non-GNU ld" >&5
  1567.    fi
  1568.  
  1569.    if test -z "$LD"; then
  1570. @@ -948,7 +988,7 @@
  1571.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1572.      for ac_dir in $PATH; do
  1573.        test -z "$ac_dir" && ac_dir=.
  1574. -      if test -f "$ac_dir/$ac_prog"; then
  1575. +      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1576.      LD="$ac_dir/$ac_prog"
  1577.      # Check to see if the program is GNU ld.  I'd rather use --version,
  1578.      # but apparently some GNU ld's only accept -v.
  1579. @@ -1015,7 +1055,12 @@
  1580.  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  1581.  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1582.  # as well as any symbol that contains `d'.
  1583. -exclude_expsyms=
  1584. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1585. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1586. +# platforms (ab)use it in PIC code, but their linkers get confused if
  1587. +# the symbol is explicitly referenced.  Since portable code cannot
  1588. +# rely on this symbol name, it's probably fine to never include it in
  1589. +# preloaded symbol tables.
  1590.  
  1591.  case "$host_os" in
  1592.  cygwin* | mingw*)
  1593. @@ -1027,10 +1072,6 @@
  1594.    fi
  1595.    ;;
  1596.  
  1597. -freebsd2* | sunos4*)
  1598. -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1599. -  ;;
  1600. -
  1601.  esac
  1602.  
  1603.  ld_shlibs=yes
  1604. @@ -1058,18 +1099,21 @@
  1605.      archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  1606.      hardcode_libdir_flag_spec='-L$libdir'
  1607.      hardcode_minus_L=yes
  1608. -    ;;
  1609.  
  1610. -  sunos4*)
  1611. -    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1612. -    wlarc=
  1613. -    hardcode_direct=yes
  1614. -    hardcode_minus_L=yes
  1615. -    hardcode_shlibpath_var=no
  1616. +    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  1617. +    # that the semantics of dynamic libraries on AmigaOS, at least up
  1618. +    # to version 4, is to share data among multiple programs linked
  1619. +    # with the same dynamic library.  Since this doesn't match the
  1620. +    # behavior of shared libraries on other platforms, we can use
  1621. +    # them.
  1622. +    ld_shlibs=no
  1623.      ;;
  1624.  
  1625.    beos*)
  1626.      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1627. +      allow_undefined_flag=unsupported
  1628. +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1629. +      # support --undefined.  This deserves some investigation.  FIXME
  1630.        archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1631.      else
  1632.        ld_shlibs=no
  1633. @@ -1087,7 +1131,7 @@
  1634.      # then regenerate the def file from the symbol export list, so that
  1635.      # the compiled dll only exports the symbol export list.
  1636.      export_symbols_cmds='rm -f $objdir/$soname-ltdll.c~
  1637. -      sed -e "/^# \/\* ltdll.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  1638. +      sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  1639.        (cd $objdir && $CC -c $soname-ltdll.c)~
  1640.        $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs~
  1641.        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'
  1642. @@ -1095,7 +1139,7 @@
  1643.      archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
  1644.        _lt_hint=1;
  1645.        for symbol in `cat $export_symbols`; do
  1646. -        echo "    \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
  1647. +    echo "    \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
  1648.      _lt_hint=`expr 1 + \$_lt_hint`;
  1649.        done~
  1650.        $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  1651. @@ -1107,6 +1151,44 @@
  1652.        old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
  1653.      ;;
  1654.  
  1655. +  netbsd*)
  1656. +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1657. +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1658. +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1659. +    else
  1660. +      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
  1661. +      # can we support soname and/or expsyms with a.out? -oliva
  1662. +    fi
  1663. +    ;;
  1664. +
  1665. +  solaris*)
  1666. +    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  1667. +      ld_shlibs=no
  1668. +      cat <<EOF 1>&2
  1669. +
  1670. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1671. +*** create shared libraries on Solaris systems.  Therefore, libtool
  1672. +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1673. +*** binutils to release 2.9.1 or newer.  Another option is to modify
  1674. +*** your PATH or compiler configuration so that the native linker is
  1675. +*** used, and then restart.
  1676. +
  1677. +EOF
  1678. +    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1679. +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1680. +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1681. +    else
  1682. +      ld_shlibs=no
  1683. +    fi
  1684. +    ;;      
  1685. +
  1686. +  sunos4*)
  1687. +    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
  1688. +    wlarc=
  1689. +    hardcode_direct=yes
  1690. +    hardcode_shlibpath_var=no
  1691. +    ;;
  1692. +
  1693.    *)
  1694.      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1695.        archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1696. @@ -1121,7 +1203,15 @@
  1697.      runpath_var=LD_RUN_PATH
  1698.      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  1699.      export_dynamic_flag_spec='${wl}--export-dynamic'
  1700. -    whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1701. +    case $host_os in
  1702. +    cygwin* | mingw*)
  1703. +      # dlltool doesn't understand --whole-archive et. al.
  1704. +      whole_archive_flag_spec=
  1705. +      ;;
  1706. +    *)
  1707. +      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1708. +      ;;
  1709. +    esac
  1710.    fi
  1711.  else
  1712.    # PORTME fill in a description of your system's linker (not GNU ld)
  1713. @@ -1141,10 +1231,12 @@
  1714.      ;;
  1715.  
  1716.    aix4*)
  1717. -    allow_undefined_flag=
  1718. +    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
  1719. +    hardcode_libdir_separator=':'
  1720.      if test "$with_gcc" = yes; then
  1721. -      if strings `${CC} -print-prog-name=collect2` | \
  1722. -     grep resolve_lib_name >/dev/null
  1723. +      collect2name=`${CC} -print-prog-name=collect2`
  1724. +      if test -f "$collect2name" && \
  1725. +     strings "$collect2name" | grep resolve_lib_name >/dev/null
  1726.        then
  1727.      # We have reworked collect2
  1728.      hardcode_direct=yes
  1729. @@ -1151,19 +1243,25 @@
  1730.        else
  1731.      # We have old collect2
  1732.      hardcode_direct=unsupported
  1733. +    # It fails to find uninstalled libraries when the uninstalled
  1734. +    # path is not listed in the libpath.  Setting hardcode_minus_L
  1735. +    # to unsupported forces relinking
  1736. +    hardcode_minus_L=yes
  1737. +    hardcode_libdir_flag_spec='-L$libdir'
  1738. +    hardcode_libdir_separator=
  1739.        fi
  1740. -      archive_cmds='$CC -shared ${wl}-bnoentry -o $objdir/$soname $libobjs $deplibs $linkopts'
  1741. +      shared_flag='-shared'
  1742.      else
  1743. -      always_export_symbols=yes
  1744. -      archive_expsym_cmds='$CC -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'
  1745. +      shared_flag='${wl}-bM:SRE'
  1746.        hardcode_direct=yes
  1747.      fi
  1748. -    hardcode_minus_L=yes
  1749. -    # Though LIBPATH variable hardcodes shlibpath into executable,
  1750. -    # it doesn't affect searching for -l* libraries; this confuses
  1751. -    # tests in mdemo.
  1752. -    hardcode_shlibpath_var=unsupported
  1753. -    hardcode_libdir_flag_spec='-L$libdir'
  1754. +    allow_undefined_flag=' ${wl}-berok'
  1755. +    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
  1756. +    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
  1757. +    case "$host_os" in aix4.[01]|aix4.[01].*)
  1758. +      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
  1759. +      always_export_symbols=yes ;;
  1760. +    esac
  1761.     ;;
  1762.  
  1763.    amigaos*)
  1764. @@ -1170,6 +1268,8 @@
  1765.      archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  1766.      hardcode_libdir_flag_spec='-L$libdir'
  1767.      hardcode_minus_L=yes
  1768. +    # see comment about different semantics on the GNU ld section
  1769. +    ld_shlibs=no
  1770.      ;;
  1771.  
  1772.    cygwin* | mingw*)
  1773. @@ -1192,7 +1292,6 @@
  1774.  
  1775.    freebsd1*)
  1776.      ld_shlibs=no
  1777. -    can_build_shared=no
  1778.      ;;
  1779.  
  1780.    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1781. @@ -1203,7 +1302,6 @@
  1782.      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
  1783.      hardcode_libdir_flag_spec='-R$libdir'
  1784.      hardcode_direct=yes
  1785. -    hardcode_minus_L=no # verified on 2.2.6
  1786.      hardcode_shlibpath_var=no
  1787.      ;;
  1788.  
  1789. @@ -1220,31 +1318,27 @@
  1790.      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
  1791.      hardcode_libdir_flag_spec='-R$libdir'
  1792.      hardcode_direct=yes
  1793. -    hardcode_minus_L=no
  1794.      hardcode_shlibpath_var=no
  1795.      ;;
  1796.  
  1797. -  hpux9*)
  1798. -    archive_cmds='$rm $objdir/$soname~$LD -b +s +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib'
  1799. -    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1800. -    hardcode_direct=yes
  1801. -    hardcode_minus_L=yes
  1802. -    export_dynamic_flag_spec='${wl}-E'
  1803. -    ;;
  1804. -
  1805. -  hpux10* | hpux11*)
  1806. -    archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib $libobjs $deplibs $linkopts'
  1807. +  hpux9* | hpux10* | hpux11*)
  1808. +    case "$host_os" in
  1809. +    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
  1810. +    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
  1811. +    esac
  1812.      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1813. +    hardcode_libdir_separator=:
  1814.      hardcode_direct=yes
  1815. -    hardcode_minus_L=yes
  1816. +    hardcode_minus_L=yes # Not in the search PATH, but as the default
  1817. +             # location of the library.
  1818.      export_dynamic_flag_spec='${wl}-E'
  1819.      ;;
  1820.  
  1821.    irix5* | irix6*)
  1822.      if test "$with_gcc" = yes; then
  1823. -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  1824. +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1825.      else
  1826. -      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
  1827. +      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1828.      fi
  1829.      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1830.      hardcode_libdir_separator=:
  1831. @@ -1279,10 +1373,10 @@
  1832.    osf3* | osf4*)
  1833.      if test "$with_gcc" = yes; then
  1834.        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  1835. -      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  1836. +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1837.      else
  1838.        allow_undefined_flag=' -expect_unresolved \*'
  1839. -      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
  1840. +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1841.      fi
  1842.      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1843.      hardcode_libdir_separator=:
  1844. @@ -1289,8 +1383,10 @@
  1845.      ;;
  1846.  
  1847.    sco3.2v5*)
  1848. -    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
  1849. -    hardcode_direct=yes
  1850. +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1851. +    hardcode_shlibpath_var=no
  1852. +    runpath_var=LD_RUN_PATH
  1853. +    hardcode_runpath_var=yes
  1854.      ;;
  1855.  
  1856.    solaris*)
  1857. @@ -1302,16 +1398,15 @@
  1858.          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  1859.      hardcode_libdir_flag_spec='-R$libdir'
  1860.      hardcode_shlibpath_var=no
  1861. +    case "$host_os" in
  1862. +    solaris2.[0-5] | solaris2.[0-5].*) ;;
  1863. +    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  1864. +      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  1865. +    esac
  1866.      ;;
  1867.  
  1868.    sunos4*)
  1869. -    # Why do we need -Bstatic?  To avoid inter-library dependencies, maybe...
  1870. -    if test "$with_gcc" = yes; then
  1871. -      # Use -fPIC here because libgcc is multilibbed
  1872. -      archive_cmds='$CC -shared ${wl}-Bstatic -fPIC -o $lib $libobjs $deplibs $linkopts'
  1873. -    else
  1874. -      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1875. -    fi
  1876. +    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1877.      hardcode_libdir_flag_spec='-L$libdir'
  1878.      hardcode_direct=yes
  1879.      hardcode_minus_L=yes
  1880. @@ -1318,10 +1413,15 @@
  1881.      hardcode_shlibpath_var=no
  1882.      ;;
  1883.  
  1884. +  sysv4)
  1885. +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1886. +    runpath_var='LD_RUN_PATH'
  1887. +    hardcode_shlibpath_var=no
  1888. +    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
  1889. +    ;;  
  1890. +
  1891.    sysv4.3*)
  1892.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1893. -    hardcode_direct=no
  1894. -    hardcode_minus_L=no
  1895.      hardcode_shlibpath_var=no
  1896.      export_dynamic_flag_spec='-Bexport'
  1897.      ;;
  1898. @@ -1329,8 +1429,6 @@
  1899.    uts4*)
  1900.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1901.      hardcode_libdir_flag_spec='-L$libdir'
  1902. -    hardcode_direct=no
  1903. -    hardcode_minus_L=no
  1904.      hardcode_shlibpath_var=no
  1905.      ;;
  1906.  
  1907. @@ -1337,28 +1435,37 @@
  1908.    dgux*)
  1909.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1910.      hardcode_libdir_flag_spec='-L$libdir'
  1911. -    hardcode_direct=no
  1912. -    hardcode_minus_L=no
  1913. +    hardcode_shlibpath_var=no
  1914. +    ;;
  1915. +
  1916. +  sysv4*MP*)
  1917. +    if test -d /usr/nec ;then
  1918. +    # archive_cmds='$LD -G -z text -h $soname -o $lib$libobjs$deplibs'
  1919. +    archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
  1920.      hardcode_shlibpath_var=no
  1921. +    runpath_var=LD_RUN_PATH
  1922. +    hardcode_runpath_var=yes
  1923. +    ld_shlibs=yes
  1924. +    fi
  1925.      ;;
  1926.  
  1927.    *)
  1928.      ld_shlibs=no
  1929. -    can_build_shared=no
  1930.      ;;
  1931.    esac
  1932.  fi
  1933.  echo "$ac_t$ld_shlibs" 1>&6
  1934. +test "$ld_shlibs" = no && can_build_shared=no
  1935.  
  1936.  if test -z "$NM"; then
  1937.    echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
  1938.    case "$NM" in
  1939. -  /* | [A-Za-z]:[/\\]*) ;; # Let the user override the test with a path.
  1940. +  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
  1941.    *)
  1942.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1943.      for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
  1944.        test -z "$ac_dir" && ac_dir=.
  1945. -      if test -f $ac_dir/nm; then
  1946. +      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
  1947.      # Check to see if the nm accepts a BSD-compat flag.
  1948.      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1949.      #   nm: unknown option "B" ignored
  1950. @@ -1416,6 +1523,9 @@
  1951.  solaris*)
  1952.    symcode='[BDT]'
  1953.    ;;
  1954. +sysv4)
  1955. +  symcode='[DFNSTU]'
  1956. +  ;;
  1957.  esac
  1958.  
  1959.  # If we're using GNU nm, then use its standard symbol codes.
  1960. @@ -1444,11 +1554,11 @@
  1961.  main(){nm_test_var='a';nm_test_func();return(0);}
  1962.  EOF
  1963.  
  1964. -  echo "$progname:1447: checking if global_symbol_pipe works" >&5
  1965. -  if { (eval echo $progname:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  1966. +  echo "$progname:1557: checking if global_symbol_pipe works" >&5
  1967. +  if { (eval echo $progname:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  1968.      # Now try to grab the symbols.
  1969.      nlist=conftest.nm
  1970. -    if { echo "$progname:1451: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  1971. +    if { echo "$progname:1561: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  1972.  
  1973.        # Try sorting and uniquifying the output.
  1974.        if sort "$nlist" | uniq > "$nlist"T; then
  1975. @@ -1495,12 +1605,12 @@
  1976.  #endif
  1977.  EOF
  1978.        # Now try linking the two files.
  1979. -      mv conftest.$objext conftestm.$objext
  1980. +      mv conftest.$objext conftstm.$objext
  1981.        save_LIBS="$LIBS"
  1982.        save_CFLAGS="$CFLAGS"
  1983. -      LIBS="conftestm.$objext"
  1984. +      LIBS="conftstm.$objext"
  1985.        CFLAGS="$CFLAGS$no_builtin_flag"
  1986. -      if { (eval echo $progname:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1987. +      if { (eval echo $progname:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1988.          pipe_works=yes
  1989.        else
  1990.          echo "$progname: failed program was:" >&5
  1991. @@ -1520,7 +1630,7 @@
  1992.      echo "$progname: failed program was:" >&5
  1993.      cat conftest.c >&5
  1994.    fi
  1995. -  $rm conftest*
  1996. +  $rm conftest* conftst*
  1997.  
  1998.    # Do not use the global_symbol_pipe unless it works.
  1999.    if test "$pipe_works" = yes; then
  2000. @@ -1529,7 +1639,11 @@
  2001.      global_symbol_pipe=
  2002.    fi
  2003.  done
  2004. -echo "$ac_t$pipe_works" 1>&6
  2005. +if test "$pipe_works" = yes; then
  2006. +  echo "${ac_t}ok" 1>&6
  2007. +else
  2008. +  echo "${ac_t}failed" 1>&6
  2009. +fi
  2010.  
  2011.  if test -z "$global_symbol_pipe"; then
  2012.    global_symbol_to_cdecl=
  2013. @@ -1542,10 +1656,12 @@
  2014.     test -n "$runpath_var"; then
  2015.  
  2016.    # We can hardcode non-existant directories.
  2017. -  if test "$hardcode_direct" != no && \
  2018. -     test "$hardcode_minus_L" != no && \
  2019. -     test "$hardcode_shlibpath_var" != no; then
  2020. -
  2021. +  if test "$hardcode_direct" != no &&
  2022. +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2023. +     # have to relink, otherwise we might link with an installed library
  2024. +     # when we should be linking with a yet-to-be-installed one
  2025. +     ## test "$hardcode_shlibpath_var" != no &&
  2026. +     test "$hardcode_minus_L" != no; then
  2027.      # Linking always hardcodes the temporary library directory.
  2028.      hardcode_action=relink
  2029.    else
  2030. @@ -1628,6 +1744,10 @@
  2031.    library_names_spec='${libname}.so'
  2032.    dynamic_linker="$host_os ld.so"
  2033.    shlibpath_var=LIBRARY_PATH
  2034. +  deplibs_check_method=pass_all
  2035. +  lt_cv_dlopen="load_add_on"
  2036. +  lt_cv_dlopen_libs=
  2037. +  lt_cv_dlopen_self=yes
  2038.    ;;
  2039.  
  2040.  bsdi4*)
  2041. @@ -1634,7 +1754,7 @@
  2042.    version_type=linux
  2043.    library_names_spec='${libname}.so$major ${libname}.so'
  2044.    soname_spec='${libname}.so'
  2045. -  finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
  2046. +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2047.    shlibpath_var=LD_LIBRARY_PATH
  2048.    deplibs_check_method='file_magic ELF 32-bit LSB shared object'
  2049.    file_magic_cmd=/usr/bin/file
  2050. @@ -1654,11 +1774,13 @@
  2051.      library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  2052.    fi
  2053.    dynamic_linker='Win32 ld.exe'
  2054. -  deplibs_check_method='file_magic file format pei*-i386.*architecture: i386'
  2055. -  file_magic_cmd='objdump -f'
  2056. +  deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2057. +  file_magic_cmd='${OBJDUMP} -f'
  2058.    need_lib_prefix=no
  2059.    # FIXME: first we should search . and the directory the executable is in
  2060.    shlibpath_var=PATH
  2061. +  lt_cv_dlopen="LoadLibrary"
  2062. +  lt_cv_dlopen_libs=
  2063.    ;;
  2064.  
  2065.  freebsd1*)
  2066. @@ -1683,7 +1805,7 @@
  2067.        need_version=yes
  2068.        ;;
  2069.    esac
  2070. -  finish_cmds='PATH="$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
  2071. +  finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
  2072.    shlibpath_var=LD_LIBRARY_PATH
  2073.    ;;
  2074.  
  2075. @@ -1701,6 +1823,7 @@
  2076.    need_lib_prefix=no
  2077.    need_version=no
  2078.    shlibpath_var=SHLIB_PATH
  2079. +  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2080.    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  2081.    soname_spec='${libname}${release}.sl$major'
  2082.    # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2083. @@ -1707,40 +1830,36 @@
  2084.    postinstall_cmds='chmod 555 $lib'
  2085.    ;;
  2086.  
  2087. -irix5*)
  2088. -  version_type=irix
  2089. -  soname_spec='${libname}${release}.so'
  2090. -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  2091. -  shlibpath_var=LD_LIBRARY_PATH
  2092. -  deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" # or should it be pass_all?
  2093. -  file_magic_cmd=/usr/bin/file
  2094. -  file_magic_test_file=`echo /lib/libc.so*`
  2095. -  shlibpath_overrides_runpath=no
  2096. -  ;;
  2097. -
  2098. -irix6*)
  2099. +irix5* | irix6*)
  2100.    version_type=irix
  2101.    need_lib_prefix=no
  2102.    need_version=no
  2103. -  soname_spec='${libname}${release}.so'
  2104. -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  2105. -  case "$LD" in # libtool.m4 will add one of these switches to LD
  2106. -  *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  2107. -  *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  2108. -  *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2109. -  *) libsuff= shlibsuff= libmagic=never-match;;
  2110. +  soname_spec='${libname}${release}.so.$major'
  2111. +  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
  2112. +  case "$host_os" in
  2113. +  irix5*)
  2114. +    libsuff= shlibsuff=
  2115. +    # this will be overridden with pass_all, but let us keep it just in case
  2116. +    deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  2117. +    ;;
  2118. +  *)
  2119. +    case "$LD" in # libtool.m4 will add one of these switches to LD
  2120. +    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  2121. +    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  2122. +    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2123. +    *) libsuff= shlibsuff= libmagic=never-match;;
  2124. +    esac
  2125. +    # this will be overridden with pass_all, but let us keep it just in case
  2126. +    deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  2127. +    ;;
  2128.    esac
  2129.    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2130.    shlibpath_overrides_runpath=no
  2131. -  # even though /usr/local/lib is always searched, the man-page says
  2132. -  # shared libraries should not be installed there if they use an ABI
  2133. -  # different from -32, so we'd better not search for shared libraries
  2134. -  # there either
  2135. -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  2136. -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  2137. -  deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" # or should it be pass_all?
  2138. +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2139. +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2140.    file_magic_cmd=/usr/bin/file
  2141.    file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  2142. +  deplibs_check_method='pass_all'
  2143.    ;;
  2144.  
  2145.  # No shared lib support for Linux oldld, aout, or coff.
  2146. @@ -1755,7 +1874,7 @@
  2147.    need_version=no
  2148.    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2149.    soname_spec='${libname}${release}.so$major'
  2150. -  finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
  2151. +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2152.    shlibpath_var=LD_LIBRARY_PATH
  2153.    shlibpath_overrides_runpath=no
  2154.    deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2155. @@ -1777,7 +1896,7 @@
  2156.    version_type=sunos
  2157.    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2158.      library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  2159. -    finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
  2160. +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2161.      dynamic_linker='NetBSD (a.out) ld.so'
  2162.    else
  2163.      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  2164. @@ -1808,17 +1927,15 @@
  2165.  
  2166.  osf3* | osf4*)
  2167.    version_type=osf
  2168. +  need_version=no
  2169.    soname_spec='${libname}${release}.so'
  2170.    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  2171.    shlibpath_var=LD_LIBRARY_PATH
  2172. -  # deplibs_check_method='pass_all'
  2173. -  # Although pass_all appears to work, it copies symbols from static libraries
  2174. -  # into shared ones and exports them.  So, when a program is linked with two
  2175. -  # or more libraries that have got copies of the same symbols, link fails
  2176. -  # This was only tested on osf4:
  2177. +  # this will be overridden with pass_all, but let us keep it just in case
  2178.    deplibs_check_method='file_magic COFF format alpha shared library'
  2179.    file_magic_cmd=/usr/bin/file
  2180.    file_magic_test_file=/shlib/libc.so
  2181. +  deplibs_check_method='pass_all'
  2182.    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2183.    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2184.    ;;
  2185. @@ -1857,7 +1974,7 @@
  2186.    need_version=yes
  2187.    ;;
  2188.  
  2189. -sysv4.2uw2* | sysv4.3* | sysv5*)
  2190. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2191.    version_type=linux
  2192.    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2193.    soname_spec='${libname}${release}.so$major'
  2194. @@ -1866,6 +1983,15 @@
  2195.      ncr)
  2196.        deplibs_check_method='pass_all'
  2197.        ;;
  2198. +    motorola)
  2199. +      need_lib_prefix=no
  2200. +      need_version=no
  2201. +      shlibpath_overrides_runpath=no
  2202. +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2203. +      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  2204. +      file_magic_cmd=/usr/bin/file
  2205. +      file_magic_test_file=`echo /usr/lib/libc.so*`
  2206. +      ;;
  2207.    esac
  2208.    ;;
  2209.  
  2210. @@ -1885,6 +2011,15 @@
  2211.    shlibpath_var=LD_LIBRARY_PATH
  2212.    ;;
  2213.  
  2214. +sysv4*MP*)
  2215. +  if test -d /usr/nec ;then
  2216. +    version_type=linux
  2217. +    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  2218. +    soname_spec='$libname.so.$major'
  2219. +    shlibpath_var=LD_LIBRARY_PATH
  2220. +  fi
  2221. +  ;;
  2222. +
  2223.  *)
  2224.    dynamic_linker=no
  2225.    ;;
  2226. @@ -1895,6 +2030,17 @@
  2227.  # Report the final consequences.
  2228.  echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
  2229.  
  2230. +# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
  2231. +# configure.in, otherwise build static only libraries.
  2232. +case "$host_os" in
  2233. +cygwin* | mingw* | os2*)
  2234. +  if test x$can_build_shared = xyes; then
  2235. +    test x$enable_win32_dll = xno && can_build_shared=no
  2236. +    echo "checking if package supports dlls... $can_build_shared" 1>&6
  2237. +  fi
  2238. +;;
  2239. +esac
  2240. +
  2241.  if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
  2242.    case "$deplibs_check_method" in
  2243.    "file_magic "*)
  2244. @@ -1973,16 +2119,16 @@
  2245.  else
  2246.  if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
  2247.    lt_cv_dlopen=no lt_cv_dlopen_libs=
  2248. -echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  2249. -echo "$progname:1977: checking for dlopen" >&5
  2250. -if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  2251. +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  2252. +echo "$progname:2123: checking for dlopen in -ldl" >&5
  2253. +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  2254. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2255.    echo $ac_n "(cached) $ac_c" 1>&6
  2256.  else
  2257. -  cat > conftest.$ac_ext <<EOF
  2258. -#line 1982 "ltconfig"
  2259. -/* System header to define __stub macros and hopefully few prototypes,
  2260. -    which can conflict with char dlopen(); below.  */
  2261. -#include <assert.h>
  2262. +  ac_save_LIBS="$LIBS"
  2263. +LIBS="-ldl  $LIBS"
  2264. +cat > conftest.$ac_ext <<EOF
  2265. +#line 2131 "ltconfig"
  2266.  /* Override any gcc2 internal prototype to avoid an error.  */
  2267.  /* We use char because int might match the return type of a gcc2
  2268.      builtin and then its argument prototype would still apply.  */
  2269. @@ -1989,45 +2135,37 @@
  2270.  char dlopen();
  2271.  
  2272.  int main() {
  2273. -
  2274. -/* The GNU C library defines this for functions which it implements
  2275. -    to always fail with ENOSYS.  Some functions are actually named
  2276. -    something starting with __ and the normal name is an alias.  */
  2277. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  2278. -choke me
  2279. -#else
  2280. -dlopen();
  2281. -#endif
  2282. -
  2283. +dlopen()
  2284.  ; return 0; }
  2285.  EOF
  2286. -if { (eval echo $progname:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2287. +if { (eval echo $progname:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2288.    rm -rf conftest*
  2289. -  eval "ac_cv_func_dlopen=yes"
  2290. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2291.  else
  2292.    echo "$progname: failed program was:" >&5
  2293.    cat conftest.$ac_ext >&5
  2294.    rm -rf conftest*
  2295. -  eval "ac_cv_func_dlopen=no"
  2296. +  eval "ac_cv_lib_$ac_lib_var=no"
  2297.  fi
  2298.  rm -f conftest*
  2299. -fi
  2300. +LIBS="$ac_save_LIBS"
  2301.  
  2302. -if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  2303. +fi
  2304. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2305.    echo "$ac_t""yes" 1>&6
  2306. -  lt_cv_dlopen="dlopen"
  2307. +  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  2308.  else
  2309.    echo "$ac_t""no" 1>&6
  2310. -echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  2311. -echo "$progname:2022: checking for dlopen in -ldl" >&5
  2312. -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  2313. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2314. +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  2315. +echo "$progname:2160: checking for dlopen" >&5
  2316. +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  2317.    echo $ac_n "(cached) $ac_c" 1>&6
  2318.  else
  2319. -  ac_save_LIBS="$LIBS"
  2320. -LIBS="-ldl  $LIBS"
  2321. -cat > conftest.$ac_ext <<EOF
  2322. -#line 2030 "ltconfig"
  2323. +  cat > conftest.$ac_ext <<EOF
  2324. +#line 2165 "ltconfig"
  2325. +/* System header to define __stub macros and hopefully few prototypes,
  2326. +    which can conflict with char dlopen(); below.  */
  2327. +#include <assert.h>
  2328.  /* Override any gcc2 internal prototype to avoid an error.  */
  2329.  /* We use char because int might match the return type of a gcc2
  2330.      builtin and then its argument prototype would still apply.  */
  2331. @@ -2034,29 +2172,36 @@
  2332.  char dlopen();
  2333.  
  2334.  int main() {
  2335. -dlopen()
  2336. +
  2337. +/* The GNU C library defines this for functions which it implements
  2338. +    to always fail with ENOSYS.  Some functions are actually named
  2339. +    something starting with __ and the normal name is an alias.  */
  2340. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  2341. +choke me
  2342. +#else
  2343. +dlopen();
  2344. +#endif
  2345. +
  2346.  ; return 0; }
  2347.  EOF
  2348. -if { (eval echo $progname:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2349. +if { (eval echo $progname:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2350.    rm -rf conftest*
  2351. -  eval "ac_cv_lib_$ac_lib_var=yes"
  2352. +  eval "ac_cv_func_dlopen=yes"
  2353.  else
  2354.    echo "$progname: failed program was:" >&5
  2355.    cat conftest.$ac_ext >&5
  2356.    rm -rf conftest*
  2357. -  eval "ac_cv_lib_$ac_lib_var=no"
  2358. +  eval "ac_cv_func_dlopen=no"
  2359.  fi
  2360.  rm -f conftest*
  2361. -LIBS="$ac_save_LIBS"
  2362. -
  2363.  fi
  2364. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2365. +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  2366.    echo "$ac_t""yes" 1>&6
  2367. -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  2368. +  lt_cv_dlopen="dlopen"
  2369.  else
  2370.    echo "$ac_t""no" 1>&6
  2371.  echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  2372. -echo "$progname:2059: checking for dld_link in -ldld" >&5
  2373. +echo "$progname:2204: checking for dld_link in -ldld" >&5
  2374.  ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  2375.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2376.    echo $ac_n "(cached) $ac_c" 1>&6
  2377. @@ -2064,7 +2209,7 @@
  2378.    ac_save_LIBS="$LIBS"
  2379.  LIBS="-ldld  $LIBS"
  2380.  cat > conftest.$ac_ext <<EOF
  2381. -#line 2067 "ltconfig"
  2382. +#line 2212 "ltconfig"
  2383.  /* Override any gcc2 internal prototype to avoid an error.  */
  2384.  /* We use char because int might match the return type of a gcc2
  2385.      builtin and then its argument prototype would still apply.  */
  2386. @@ -2074,7 +2219,7 @@
  2387.  dld_link()
  2388.  ; return 0; }
  2389.  EOF
  2390. -if { (eval echo $progname:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2391. +if { (eval echo $progname:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2392.    rm -rf conftest*
  2393.    eval "ac_cv_lib_$ac_lib_var=yes"
  2394.  else
  2395. @@ -2093,12 +2238,12 @@
  2396.  else
  2397.    echo "$ac_t""no" 1>&6
  2398.  echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  2399. -echo "$progname:2096: checking for shl_load" >&5
  2400. +echo "$progname:2241: checking for shl_load" >&5
  2401.  if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  2402.    echo $ac_n "(cached) $ac_c" 1>&6
  2403.  else
  2404.    cat > conftest.$ac_ext <<EOF
  2405. -#line 2101 "ltconfig"
  2406. +#line 2246 "ltconfig"
  2407.  /* System header to define __stub macros and hopefully few prototypes,
  2408.      which can conflict with char shl_load(); below.  */
  2409.  #include <assert.h>
  2410. @@ -2120,7 +2265,7 @@
  2411.  
  2412.  ; return 0; }
  2413.  EOF
  2414. -if { (eval echo $progname:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2415. +if { (eval echo $progname:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2416.    rm -rf conftest*
  2417.    eval "ac_cv_func_shl_load=yes"
  2418.  else
  2419. @@ -2137,54 +2282,47 @@
  2420.    lt_cv_dlopen="shl_load"
  2421.  else
  2422.    echo "$ac_t""no" 1>&6
  2423. -echo $ac_n "checking for LoadLibrary""... $ac_c" 1>&6
  2424. -echo "$progname:2141: checking for LoadLibrary" >&5
  2425. -if eval "test \"`echo '$''{'ac_cv_func_LoadLibrary'+set}'`\" = set"; then
  2426. +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  2427. +echo "$progname:2286: checking for shl_load in -ldld" >&5
  2428. +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  2429. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2430.    echo $ac_n "(cached) $ac_c" 1>&6
  2431.  else
  2432. -  cat > conftest.$ac_ext <<EOF
  2433. -#line 2146 "ltconfig"
  2434. -/* System header to define __stub macros and hopefully few prototypes,
  2435. -    which can conflict with char LoadLibrary(); below.  */
  2436. -#include <assert.h>
  2437. +  ac_save_LIBS="$LIBS"
  2438. +LIBS="-ldld  $LIBS"
  2439. +cat > conftest.$ac_ext <<EOF
  2440. +#line 2294 "ltconfig"
  2441. +#include "confdefs.h"
  2442.  /* Override any gcc2 internal prototype to avoid an error.  */
  2443.  /* We use char because int might match the return type of a gcc2
  2444.      builtin and then its argument prototype would still apply.  */
  2445. -char LoadLibrary();
  2446. +char shl_load();
  2447.  
  2448.  int main() {
  2449. -
  2450. -/* The GNU C library defines this for functions which it implements
  2451. -    to always fail with ENOSYS.  Some functions are actually named
  2452. -    something starting with __ and the normal name is an alias.  */
  2453. -#if defined (__stub_LoadLibrary) || defined (__stub___LoadLibrary)
  2454. -choke me
  2455. -#else
  2456. -LoadLibrary();
  2457. -#endif
  2458. -
  2459. +shl_load()
  2460.  ; return 0; }
  2461.  EOF
  2462. -if { (eval echo $progname:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2463. +if { (eval echo $progname:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2464.    rm -rf conftest*
  2465. -  eval "ac_cv_func_LoadLibrary=yes"
  2466. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2467.  else
  2468.    echo "$progname: failed program was:" >&5
  2469.    cat conftest.$ac_ext >&5
  2470.    rm -rf conftest*
  2471. -  eval "ac_cv_func_LoadLibrary=no"
  2472. +  eval "ac_cv_lib_$ac_lib_var=no"
  2473.  fi
  2474.  rm -f conftest*
  2475. -fi
  2476. +LIBS="$ac_save_LIBS"
  2477.  
  2478. -if eval "test \"`echo '$ac_cv_func_'LoadLibrary`\" = yes"; then
  2479. +fi
  2480. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2481.    echo "$ac_t""yes" 1>&6
  2482. -  lt_cv_dlopen="LoadLibrary"
  2483. +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  2484.  else
  2485.    echo "$ac_t""no" 1>&6
  2486.  fi
  2487.  
  2488. -      
  2489. +
  2490.  fi
  2491.  
  2492.      
  2493. @@ -2207,17 +2345,17 @@
  2494.  for ac_hdr in dlfcn.h; do
  2495.  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2496.  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2497. -echo "$progname:2210: checking for $ac_hdr" >&5
  2498. +echo "$progname:2348: checking for $ac_hdr" >&5
  2499.  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2500.    echo $ac_n "(cached) $ac_c" 1>&6
  2501.  else
  2502.    cat > conftest.$ac_ext <<EOF
  2503. -#line 2215 "ltconfig"
  2504. +#line 2353 "ltconfig"
  2505.  #include <$ac_hdr>
  2506.  int fnord = 0;
  2507.  EOF
  2508.  ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out"
  2509. -{ (eval echo $progname:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2510. +{ (eval echo $progname:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2511.  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2512.  if test -z "$ac_err"; then
  2513.    rm -rf conftest*
  2514. @@ -2245,7 +2383,7 @@
  2515.      LIBS="$lt_cv_dlopen_libs $LIBS"
  2516.  
  2517.    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  2518. -echo "$progname:2248: checking whether a program can dlopen itself" >&5
  2519. +echo "$progname:2386: checking whether a program can dlopen itself" >&5
  2520.  if test "${lt_cv_dlopen_self+set}" = set; then
  2521.    echo $ac_n "(cached) $ac_c" 1>&6
  2522.  else
  2523. @@ -2253,7 +2391,7 @@
  2524.      lt_cv_dlopen_self=cross
  2525.    else
  2526.      cat > conftest.c <<EOF
  2527. -#line 2256 "ltconfig"
  2528. +#line 2394 "ltconfig"
  2529.  
  2530.  #if HAVE_DLFCN_H
  2531.  #include <dlfcn.h>
  2532. @@ -2299,7 +2437,7 @@
  2533.             if(ptr1 || ptr2) exit(0); } exit(1); } 
  2534.  
  2535.  EOF
  2536. -if { (eval echo $progname:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2537. +if { (eval echo $progname:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2538.  then
  2539.    lt_cv_dlopen_self=yes
  2540.  else
  2541. @@ -2318,7 +2456,7 @@
  2542.    if test "$lt_cv_dlopen_self" = yes; then
  2543.      LDFLAGS="$LDFLAGS $link_static_flag"
  2544.    echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  2545. -echo "$progname:2321: checking whether a statically linked program can dlopen itself" >&5
  2546. +echo "$progname:2459: checking whether a statically linked program can dlopen itself" >&5
  2547.  if test "${lt_cv_dlopen_self_static+set}" = set; then
  2548.    echo $ac_n "(cached) $ac_c" 1>&6
  2549.  else
  2550. @@ -2326,7 +2464,7 @@
  2551.      lt_cv_dlopen_self_static=cross
  2552.    else
  2553.      cat > conftest.c <<EOF
  2554. -#line 2329 "ltconfig"
  2555. +#line 2467 "ltconfig"
  2556.  
  2557.  #if HAVE_DLFCN_H
  2558.  #include <dlfcn.h>
  2559. @@ -2372,7 +2510,7 @@
  2560.      if(ptr1 || ptr2) exit(0); } exit(1); } 
  2561.  
  2562.  EOF
  2563. -if { (eval echo $progname:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2564. +if { (eval echo $progname:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2565.  then
  2566.    lt_cv_dlopen_self_static=yes
  2567.  else
  2568. @@ -2416,8 +2554,10 @@
  2569.  case "$ltmain" in
  2570.  *.sh)
  2571.    # Now quote all the things that may contain metacharacters.
  2572. -  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
  2573. -    old_LN_S old_DLLTOOL old_AS AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
  2574. +  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
  2575. +    old_LD old_LDFLAGS old_LIBS \
  2576. +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
  2577. +    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
  2578.      reload_flag reload_cmds wl \
  2579.      pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  2580.      thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  2581. @@ -2497,8 +2637,9 @@
  2582.  
  2583.  *)
  2584.    # Double-quote the variables that need it (for aesthetics).
  2585. -  for var in old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
  2586. -    old_LN_S old_DLLTOOL old_AS; do
  2587. +  for var in old_CC old_CFLAGS old_CPPFLAGS \
  2588. +    old_LD old_LDFLAGS old_LIBS \
  2589. +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
  2590.      eval "$var=\\\"\$var\\\""
  2591.    done
  2592.  
  2593. @@ -2518,8 +2659,9 @@
  2594.  # Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2595.  #
  2596.  # CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
  2597. -# LD=$old_LD NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
  2598. -# DLLTOOL="$old_DLLTOOL" AS="$old_AS" \\
  2599. +# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
  2600. +# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
  2601. +# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
  2602.  #   $0$ltconfig_args
  2603.  #
  2604.  # Compiler and other test output produced by $progname, useful for
  2605. @@ -2565,6 +2707,9 @@
  2606.  # Used on cygwin: DLL creation program.
  2607.  DLLTOOL="$DLLTOOL"
  2608.  
  2609. +# Used on cygwin: object dumper.
  2610. +OBJDUMP="$OBJDUMP"
  2611. +
  2612.  # Used on cygwin: assembler.
  2613.  AS="$AS"
  2614.  
  2615. @@ -2587,7 +2732,7 @@
  2616.  # Additional compiler flags for building library objects.
  2617.  pic_flag=$pic_flag
  2618.  
  2619. -# Does compiler simultaneously support -c and -o options
  2620. +# Does compiler simultaneously support -c and -o options?
  2621.  compiler_c_o=$compiler_c_o
  2622.  
  2623.  # Can we write directly to a .lo ?
  2624. @@ -2657,7 +2802,7 @@
  2625.  # Method to check whether dependent libraries are shared objects.
  2626.  deplibs_check_method=$deplibs_check_method
  2627.  
  2628. -# Command to use when deplibs_check_method == file_magic
  2629. +# Command to use when deplibs_check_method == file_magic.
  2630.  file_magic_cmd=$file_magic_cmd
  2631.  
  2632.  # Flag that allows shared libraries with undefined symbols to be built.
  2633. @@ -2718,16 +2863,16 @@
  2634.  # Fix the shell variable \$srcfile for the compiler.
  2635.  fix_srcfile_path="$fix_srcfile_path"
  2636.  
  2637. -# Set to yes if exported symbols are required
  2638. +# Set to yes if exported symbols are required.
  2639.  always_export_symbols=$always_export_symbols
  2640.  
  2641. -# The command to extract exported symbols
  2642. +# The commands to list exported symbols.
  2643.  export_symbols_cmds=$export_symbols_cmds
  2644.  
  2645. -# Symbols that should not be listed in the preloaded symbols
  2646. +# Symbols that should not be listed in the preloaded symbols.
  2647.  exclude_expsyms=$exclude_expsyms
  2648.  
  2649. -# Symbols that must always be exported
  2650. +# Symbols that must always be exported.
  2651.  include_expsyms=$include_expsyms
  2652.  
  2653.  EOF
  2654. --- ./configure    Sat Jun 26 23:56:35 1999
  2655. +++ ../libxml-1.3.0/./configure    Mon Jul  5 11:38:43 1999
  2656. @@ -2522,7 +2522,7 @@
  2657.  
  2658.  
  2659.  XML_LIBDIR='-L${libdir}'
  2660. -XML_INCLUDEDIR='-I${includedir}'
  2661. +XML_INCLUDEDIR='-I${includedir}/gnome-xml'
  2662.  XML_LIBS="-lxml $Z_LIBS"
  2663.  
  2664.  
  2665.